Does hg, svn or others have an option like git stash?
If you don't want to use shelves, you can do it the following way.
hg diff > mylocalchanges.txt hg revert -a # Do your merge here, once you are done, import back your local mods hg import --no-commit mylocalchanges.txt