是對於Mercurial(hg),如果「hg heads」顯示3個頭,但2個是分支,如何去除它?
hg up bugfix # <-- use that branch
hg commit --close-branch
hg up another_branch # <-- use another branch
hg commit --close-branch
hg up default
的正確方法,現在hg heads
將只顯示1頭?這是關閉未使用分支的正確方法嗎?
看起來好像我們再次將hg up bugfix
改爲一個文件並提交,那麼該分支會自動重新打開,默認分支會再次顯示2個頭?