⇤ ← Revision 1 as of 2008-03-23 15:59:12
Size: 425
Comment: moved from TipsAndTricks/Intermediate
|
Size: 435
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
If you've got a dead [:Branch:branch] you'd like to eliminate from the list of heads, you can do a 'no-op merge' to remove it: | If you've got a dead [:Branch:branch] you'd like to eliminate from the list of [:Head:heads], you can do a 'no-op merge' to remove it: |
Line 11: | Line 11: |
Pruning dead branches
If you've got a dead [:Branch:branch] you'd like to eliminate from the list of [:Head:heads], you can do a 'no-op merge' to remove it:
$ 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