How do you delete an obsolete named branch?
Repo A: (two heads and two branches)
trunk
idea-2.x
I now want to get rid of idea-2.x. How do I do that? In scanning the
wiki and this mailing list I have seen the following suggestions:
(delete a branch and remove a head)
$ hg update -C tip # jump to one head
$ hg merge otherhead # merge in the other head
$ hg revert -a -r tip # undo all the changes from the merge
$ hg commit -m "eliminate other head" # create new tip identical to the old
(inactivate a branch and remove a head)
$ hg update -C activebranch
$ HGMERGE=true hg merge oldbranch
$ hg revert -a -r activebranch
$ hg commit -m 'Discard oldbranch'
(clone the trunk and in so doing lose the other branch)
hg clone -r branch old new
Any thoughts on how this is best handled? It seems more complicated than GIT.
Sean
_______________________________________________
Mercurial mailing list
Mercurial@...
http://selenic.com/mailman/listinfo/mercurial