>hg branches
default 210:87d8059250ce
和两个头
hg heads
changeset: 1:87d8059250ce
tag: tip
user: me
date: Tue Apr 12 18:33:24 2011 -0700
summary: old one
changeset: 2:fa5abf8b578a
user: me
date: Tue Apr 12 18:13:19 2011 -0700
summary: new one
我想关闭 head 1 并且只使用 head 2。我该怎么做?我怎样才能找出这与哪个分支相关联?
我见过这种方法:
hg up -r 1
hg ci --close-branch
但是当我去推送时,它会提示“你忘记 merge 了吗?使用 push -f 来强制”。我不知道为什么它会问我这个问题,因为我想覆盖我刚刚用这个新头拉出的更改...... rev 2。
让我知道如何做到这一点!谢谢你!!!
最佳答案
这为我解答了。谢谢Mercurial: beheading a head
关于mercurial - 在 mercurial 中关闭一个分支/头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5643600/