A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-February/108448.html below:

[Python-Dev] Mercurial conversion repositories

[Python-Dev] Mercurial conversion repositoriesGeorg Brandl g.brandl at gmx.net
Sun Feb 27 17:38:26 CET 2011
On 26.02.2011 21:49, Barry Warsaw wrote:
> On Feb 26, 2011, at 01:49 AM, Éric Araujo wrote:
> 
>>You speak to my heart, sir.  In your ~/.hgrc, under the section [ui],
>>set “editor = path/to/mercurial/source/hgeditor” and enjoy your diffs.
>>I use it and love it.
> 
> Except it doesn't quite work the way I want it to (hg 1.6.3).  It opens your
> editor with two files, one is the commit message and the other is the diff.
> (The script itself is a bit buggy too. ;)
> 
> But it's a good clue, and I've modified the default hgeditor script to get
> closer, and fix the bug I noticed.  I basically append the diff to the
> temporary log message file.  It's still not right though because if the diff
> lines aren't prepended with 'HG:', they end up in the commit message.  Arg.
> 
> Oh well, I can clearly hack a more complicated script together.  It's such a
> blindingly obvious improvement, it's too bad 'hg commit' doesn't DTRT by
> default.

While I understand the usefulness of the diff feature, it is not useful to
everyone, e.g. those using almost exclusively ``commit -m message``.

Of course it would be nice if hg made it easier (a hgrc option, for example)
to do this.

BTW, I had not heard of hgeditor before, and wrote a small hg extension to
do what you want (with HG: prefix :) before I saw that others had already
replied with hgeditor.  The extension had 10 lines of code.

Georg

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4