immutable commit messages, why?

Jesse Glick jesse.glick at sun.com
Tue Apr 1 12:00:08 CDT 2008


Jens.Wulf at sew-eurodrive.de wrote:
> Maybe it is possible to write an extension which lets you save edited
> commit messages to a versioned file [and] replace original commit
> messages with those from the file (if they are overwritten there).

Seems plausible. You could probably use some Python tricks to override 
changelog.read (using a dynamic subclass installed in 
localrepo.__getattr__); or at a higher level, override 
cmdutil.changeset_templater (though this would not work as expected for 
e.g. log -k).



More information about the Mercurial mailing list