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
hg --rollback can be used to undo the last transaction so as long as your hg pull is still the most recent transaction then you can use that. This command should be used with care though. See here for some more details.
hg --rollback