Changing commit messages

Benoit Boissinot bboissin at gmail.com
Mon Jun 19 14:29:09 CDT 2006


On 6/19/06, konrad.hinsen at laposte.net <konrad.hinsen at laposte.net> wrote:
> On 19.06.2006, at 18:01, Bryan O'Sullivan wrote:
>
> > No, there's not an easy way to do it.  I've been pondering
> > submitting a
> > bug requesting a "recommit" extension that would roll back a commit
> > and
> > redo it, allowing you to edit the commit message, but that wouldn't
> > help
> > your problem, since you need to edit *everything*.
>
> Indeed, though I would appreciate the "recommit" command for those
> cases where I discover a typo a minute after committing.
>
In those case, I do (if it is not a merge changeset):
hg export tip > export.diff
hg rollback # rollback the last commit
vi export.diff # change the commit msg
hg import export.diff

It is more than one command, but I don't have to do it frequently...

regards,

Benoit


More information about the Mercurial mailing list