If you are still in the draft phase (not pushed elsewhere yet), use the built-in extension hg strip <rev>
command. Otherwise, you should do a hg backout
, which will reverse the changeset.
In case you still need the commit you made, I suggest you export
it to import
it again in the correct branch, before stripping.