Mercurial back in time, going back to a previous revision
After making some changes in a project and finally forking part of it into another project, I wanted to get back in time to the state where it was 2 days ago. I really did not want to create a new branch but rather have repository matching the state it was 2 days ago (i.e. the files added are then removed but still in the history).
The easiest I found out was to find the last revision I wanted to included in my bitbucket project and then do:
The easiest I found out was to find the last revision I wanted to included in my bitbucket project and then do:
hg revert --all --rev <my_rev>
hg commit -m "revert to <my_rev>"