hg commit doesn't catch changes made during editing of commit messages

Dan Christensen jdc at uwo.ca
Wed Aug 24 13:22:12 CDT 2005


Thomas Arendsen Hein <thomas at intevation.de> writes:

> * Michal Kvasnica <kvasnica at control.ee.ethz.ch> [20050824 18:59]:
>> so "hg commit" using the external editor didn't catch the changes made
>> during editing the commit message. Is this the desired behavior?
>
> It is already planned to change this.
>
>> If it
>> is, then the following:
>> 
>> $ hg diff
>> [nothing]
>> 
>> should certainly show the second modification. But it doesn't.

I've done this "change a file while editing the commit message"
several times, and also noticed a problem or two, but always assumed 
I was just confused (often a safe assumption).

> You're right. Cloning the repo and copying back the .hg/dirstate
> will work around this problem.

Are you saying that the repo gets corrupted by the above, and
this is a way to fix the corruption?  In my cases it seems like
everything was ok after the next commit, although the change
I thought went into the earlier commit actually went into the
later commit...

Dan


More information about the Mercurial mailing list