Let’s assume that you are already have repository.
I am going to create new branch for testing.
hg branch TestBranch |
Now we need to configure (.hgrc or Mercurial.in) file for enabling strip extension. Add following lines to configuration file.
[extensions] |
Before deleting last commit we need to get repository information for validating.
hg sum |
Also we need changeset id for deleting commit. Our last commit changeset id 9daa6f893e23 and you can easly see on below. Or if you dont want to use hg sum and get directly changeset id, you can execute following command.
hg id -i |
That’s all.