make `view diff on commit` a feature that is easy to use
anatoly techtonik
techtonik at gmail.com
Thu Nov 6 09:00:27 UTC 2014
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).
--
anatoly t.
More information about the Mercurial
mailing list