If you do an hg pull and then an hg update (or an hg merge), is there a way to back this out? Ie: revert your repository to the state pri
hg pull
hg update
hg merge
you can:
hg update -C
see the mercurial FAQ.