changing commit comments
Martin Geisler
mg at daimi.au.dk
Tue Jul 15 10:26:24 CDT 2008
Hans Meine <meine at informatik.uni-hamburg.de> writes:
> Am Dienstag, 15. Juli 2008 11:47:12 schrieb Peter:
>> Is there an easy way to change a commit comment to correct a spelling
>> error after the commit?
>
> I usually use "hg rollback" and the repeat the commit (which is easy since I
> changed my habit to use the -m argument to commit).
>
> But I would be very interested in a general solution. Unfortunately,
> I am not sure if it is possible to do so without changing the
> revision names (IIRC the commit message is included in the hash?);
Correct -- that is what makes it impossible to change an old commit
message without making the following commits change their hashes.
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.
More information about the Mercurial
mailing list