You already got some good advice from Vince. So let me add something about how you can incorporate changes into an existing commit with Mercurial. I'm thinking that will be helpful since it sounds like you submit your change as a single patch.
If so, then I suggest you simply use hg commit --amend
to keep revising the commit based on feedback from the reviewers.
Alternatively you can use hg commit
freely to create many commits and then later fold them into one (that is equivalent to using git commit
and later squash the commits with git rebase -i
). In Mercurial, history editing is done using the aptly named histedit extension. You enable it by adding
[extensions]
histedit =
to your ~/.hgrc
file. Then run
$ hg histedit your-first-commit
to begin editing history starting with your-first-commit
. You can use a revision number, a changeset ID, or any other identifier here. Using a revset like .^^
will look familiar to you since it selects the two last commits like in Git (except that revsets are much more powerful than what Git calls "treeish").