hg commit doesn't catch changes made during editing of commit
messages
Rob Browning
rlb at defaultvalue.org
Fri Sep 23 01:33:44 CDT 2005
Bryan O'Sullivan <bos at serpentine.com> writes:
> The trouble is, that's an obnoxious behaviour, too. What happens if
> you've just typed in a detailed commit message into your editor and the
> commit gets rolled back? Poof! No more commit message.
>
> I'm not trying to defend the status quo, but I don't want to move the
> badness around, either :-)
Hmm, good point. Perhaps mercurial could just leave the commit
message and tell the user where it is:
$ hg commit ...
Error: detected modifications during the commit (commit aborted).
The pending commit message has been left in /tmp/a4ddfOP.
> This is now fixed: http://hg.serpentine.com/mercurial/bos
>
>> It would also be nice if there were some way to abort a commit (for
>> example, if you realize you've made some kind of mistake while editing
>> the commit message).
>
> There is; just exit from the editor without modifying the commit text.
Ahh, OK. Thanks.
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
More information about the Mercurial
mailing list