You can ask your developers to install
[hooks] pre-commit = hg pull -u
in their configuration files (probably it should be installed in the per-repository .hg/hgrc , since this workflow is specific to the repository).
This makes Mercurial a bit like Subversion: your developers will only have one outstanding set of changes. But pay attention, as soon as someone clicks on the server, hg pull -u cannot update the new tip of the branch, as it will cross the branches (topological branches) for this. Therefore, appropriate merging (or rebase , see hg pull --rebase ) will be required at this point.
Martin geisler
source share