(源信息来自stackoverflow...)
- Enable the MQ extension, by adding something like this to your hgrc:
[extensions]
mq =
- 修改最后一次ci的注释:
- Import the current changeset into the queue:
hg qimport -r .
- Refresh the patch, and edit the commit message:
hg qrefresh -e
- Finish all applied patches (one, in this case) and store them as regular changesets:
hg qfinish -a
- Imagine, you have 5 commits, and your erroneous commit message is in r.3.
hg qimport -r 3:tip
hg qpop -a
vi .hg/patches/3.diff
(change the comment, after the mercurial header)
hg qpush -a
hg qdelete -r qbase:qtip