Question: what does hg rollback do?
Answer: Rolling back a transaction Every time you commit a changeset or pull changes from another repository, Mercurial remembers what you did. You can undo, or roll back, exactly one of these actions using the hg rollback command. ... The commit captured the changes to the file a , but not the new file b .