I have a repository which has two branches, default and BranchA. The graph is kind of like this:
default rev10 (Node: aaaaa)
default rev9 (Node: bbbbb)
default rev8
------------------BranchA rev7
------------------BranchA rev6
------------------BranchA rev5
default rev4
default rev3
default rev2
default rev1
Then I found out that I want to clone the repository to revision 9, so I cloned it using “Clone to revision” function. And fills the revision number as: bbbbb.
When I open the new repository, BranchA‘s information is not in it. The repository’s graph looks like this:
default rev6 (Node: bbbbb)
default rev5
default rev4
default rev3
default rev2
default rev1
Can I get my old revision number back? Where is the branch information?
When you supply a revision to the
hg clonecommand, it pulls only this changeset and all its ancestors into the new repository as a new head. Without a revision argument, all changesets will be cloned, and the numbering is also preserved. You can then get rid of rev10 by usinghg strip.