When I use mercurial command (hg commit --amend
) it always opens up the editor window. In git I can avoid this by git commit -a --amend -CHEAD
, is there something equivalent for mercurial?
There is an experimental extension that was added to mercurial 4.3.1 called 'amend'. It performs the same action as commit --amend with the exception of not opening an edit window for the comments.
hg amend
It is marked as experimental, but I use it fairly often without any problems.
Also there is an unamend
command that will 'undo the most recent amend operation on a current changeset'.