How do I edit an incorrect commit message in TortoiseHG Mercurial?

MBH picture MBH · Aug 12, 2013 · Viewed 11.3k times · Source

I mistakenly did a TortoiseHG commit while trying to do a new line, and wrote the totally wrong thing in the commit message. How can I change the commit message here ?

I have not yet pushed the commit.

Answer

rpeshkov picture rpeshkov · Aug 12, 2013

Select "Amend current revision" from dropdown menu of commit button (marked on screenshot). Button title will become "Amend". Enter new commit message and click amend button.

TortoiseHG