Branches and Heads
Russell Suter
maverick at simlogix.com
Thu Feb 15 19:32:07 UTC 2007
All,
If I create a branch on a branch it appears that there is only
one head for both branches -- the head is on the second branch.
10
|
+--11 (branch 1)
|
+--12 (branch 2) (head) (tip)
If I set back to branch 1, the branch command reports that I'm
on branch 1 as expected but the revision is revision 12 even if
I do an update -C. If I update to revision 11 and commit a change
(creating revision 13) the heads command will show that I have
two heads:
10
|
+--11--13 (head)(tip)
|
+--12 (head)
What I would expect is that revision 11 stays the head of branch 1
even when branch 2 / revision 12 is created. Also, when I go back
to branch 1 and update, I get revision 11.
To complicate matters, if I do this in a clone of a parent repository,
when I go to push revision 13, It aborts with the "push creates new
remote branches!" message.
Apologies if this has been discussed earlier..
Regards
--
Russ
More information about the Mercurial
mailing list