make `view diff on commit` a feature that is easy to use

Steve Barnes gadgetsteve at hotmail.com
Thu Nov 6 09:17:58 UTC 2014


On 06/11/14 09:00, anatoly techtonik wrote:
> On Wed, Nov 5, 2014 at 6:28 PM, Roman Neuhauser <neuhauser at sigpipe.cz> wrote:
>> # techtonik at gmail.com / 2014-11-05 17:43:34 +0300:
>>> I can't completely read `hgeditor` source. This stuff in particular:
>>>     grep '^HG: changed' "$1" | cut -b 13- | while read changed;
>> * grep lines starting with "HG: changed" from the file in $1
>> * strip the 13 leading bytes from each such line
>> * loop over those lines, putting the text of each in $changed
> So, it finds filenames that were changed (but not added or removed, right?)
> and runs `hg diff` over each to add to diff file. I guess the explicit selection
> is needed to for selective "hg commit". This won't work with "hg record" that
> I use quite often.
>
> I'd still prefer a way to see diff and commit message in a single window
> (for notepad or whatever).
I suppose that this is a daft question but have you tried tortoisehg 
<http://tortoisehg.bitbucket.org/>? - it allows you to see/edit the 
commit message, the diffs from each file and cherry pick during commits 
all in a single window.  This discussion seems to be heading towards can 
we (re-)invent thg.

Gadget/Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20141106/62ef9564/attachment-0002.html>


More information about the Mercurial mailing list