How can I undo my last accidentally commited (not pushed) change in Mercurial?
If possible, a way to do so with TortoiseHg would be prefered.
Update
In my concrete case I commited a changeset (not pushed). Then I pulled and updated from the server. With these new updates I decided, that my last commit is obsolete and I don't want to sync it. So it seems, that hg rollback is not exactly what I'm searching for, because it would rollback the pull instead of my commit.



One way would be
(deprecated as of Hg2.7, August 2013)hg rollbackSee TortoiseHg Recovery section:
This thread also details the difference between
hg rollbackandhg strip:(written by Martin Geisler who also contributes on SO)
ForeverWintr suggests in the comments (in 2016, 5 years later)