我刚刚遇到了hg push
命令的问题。我做了什么 - 首先,我创建了2个分支烫-1和烫-2取得了各领域的一些变化,合并回默认和关闭这些分支使用以下命令:Mercurial推送问题
hg commit --close-branch
如果我开始hg branches
我有以下的输出:
default 29:e62a2c57b17c
hg branches -c
给我:
default 29:e62a2c57b17c
hot-fix-2 27:42f7bf715392 (closed)
hot-fix-1 26:dd98f50934b0 (closed)
因此hot-fix-*
分行似乎已关闭。但是,如果我试图推动修改我有一个错误信息:
pushing to /Users/user1/projects/mercurial/mytag
searching for changes
abort: push creates new remote branches: hot-fix-1, hot-fix-2!
(use 'hg push --new-branch' to create new remote branches)
,它并不重要命令我使用hg push -b .
或hg push -b default
所以,问题是我怎么可以把这些更改,而无需创建到存储库新的分支。
P.S我曾经与git一起工作,并希望在Mercurial中可以使用类似的分支模型。谢谢
只是明确地说:Mercurial可以做一个类似于git的分支模型,它使用非命名分支而不是书签。 – 2012-05-09 12:58:40