The bisect command helps you to track down the changeset that introduced a bug.
Reset the bisect state and mark the current revision as bad (it contains the bug!)
hg bisect --reset
hg bisect --bad
Go back to a point where you think the bug isn't present
hg update -r -200
Now...
The revert command allows discarding unwanted uncommitted changes.
Reverting changes to a single file.
hg revert example.c
Reverting all changes.
This will discard all changes not just the current directory.
hg revert --all
hg will output which files were reverted.
reverting exa...