Delete a branch/head
Kyle Butt
kylebutt at gmail.com
Sat Sep 9 16:45:50 UTC 2006
Is it possible to delete a head instead of merging it back to the tip?
For example:
kyle at North:~/tmp>cd hg-temp
kyle at North:~/tmp/hg-temp>hg init
kyle at North:~/tmp/hg-temp>echo a > a
kyle at North:~/tmp/hg-temp>hg add
adding a
kyle at North:~/tmp/hg-temp>hg ci -m "add a"
kyle at North:~/tmp/hg-temp>echo "b1" > b
kyle at North:~/tmp/hg-temp>hg add
adding b
kyle at North:~/tmp/hg-temp>hg ci -m "add b branch 1"
kyle at North:~/tmp/hg-temp>hg up 0
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
kyle at North:~/tmp/hg-temp>echo "b2" > b
kyle at North:~/tmp/hg-temp>hg add
adding b
kyle at North:~/tmp/hg-temp>hg ci -m "add b branch 2"
kyle at North:~/tmp/hg-temp>hg heads
changeset: 2:1350f1eaf45a
tag: tip
parent: 0:bbfa8fa1dc03
user: "Kyle Butt <kylebutt at gmail.com>"
date: Sat Sep 09 10:43:33 2006 -0600
summary: add b branch 2
changeset: 1:b08915b6ecdf
user: "Kyle Butt <kylebutt at gmail.com>"
date: Sat Sep 09 10:42:54 2006 -0600
summary: add b branch 1
kyle at North:~/tmp/hg-temp>
Now I'd like to be able to delete one branch so that only the other
remains. Either branch, so hg rollback isn't really an option.
Thanks,
Kyle
More information about the Mercurial
mailing list