When using Mercurial, how do you undo all changes in the working directory since the last commit? It seems like this would be a simple thing, but it\'s escaping me.
An alternative solution to hg revert is hg update -C. You can discard your local changes and update to some revision using this single command.
hg revert
hg update -C
I usually prefer typing hg up -C because it's shorter than hg revert --all --no-backup :)
hg up -C
hg revert --all --no-backup