Seeking magit-like interface in Emacs

Uwe Brauer oub at mat.ucm.es
Mon Dec 26 21:08:09 UTC 2022


>>> "HG" == Hartmut Goebel <h.goebel at crazy-compilers.com> writes:

Hi


> Hi,
> I'm using Emacs and are quite used to the very powerful package
> "magit". Now I need to work with mercurial repositories and *seeking
> for „magit for mercurial"*. The ”monkey” package could be a starting
> point, anyhow I actually wonder whether it would be easier to teach
> mercurial to magit or to extend monkey.

I am a die hard emacs/mercurial user of sorts.

I have not used magit, since I don't gasp git[1]


> I'm aware of the “monkey” package. Anyhow, compared to magit it has a
> quite different UI and - much more important - lacks features like
> committing single lines from a change, history rewriting (like git
> rebase -i … reword/squash/edit), etc. I use this a lot for tiding my
> commits. Also monkey seems to not be actively developed.

Well most of the things you mentioned can be done in Emacs/Mercurial
already. Here are a couple of useful package

    1. VC and Committing only parts of a diff. I nagged so long on
       emacs-devel till Dmitry Gutov was kind enough to implement that
       feature. Well I did quite a bit of testing and helped indirectly
       to make the code a bit faster [2]. However for that you need to
       clone and compile emacs master. I don't think that commit is
       already in a released version, but you could ask. There is an
       alternative though, which requires to install an external program
       (not sure it runs on all platforms):

    2. It is the commit-patch package found in git at github.com:caldwell/commit-patch.git

    3. The diff-hl package is very useful for displaying changes already done

    4. Then there is ahg another useful lisp package found in melpa or
       elpa not sure

    5. hg-histedit  allows you to run hg histedit from within emacs.


So it would be helpful, first to checkout these packages and then report
what you are missing.

Regards

Uwe Brauer 



Footnotes:
[1]  I am sticking to the hg-git plugin with a special patch provided my Manuel Jacob that allows me to export named-branches/topics as git-branches

[2]  Arne gave the crucial tips

-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20221226/09b83337/attachment-0001.p7s>


More information about the Mercurial mailing list