无法使用子存储库更新到mercurial分支

时间:2012-05-23 11:37:00

标签: mercurial

hg update develop --clean
remote: conq: repository does not exist.
abort: no suitable response from remote hg!

我希望能够切换到我的开发分支,撤消我的最后2次提交并将开发分支与tip合并或关闭它!

OR

关闭并重命名分支,但由于我无法更新到它,我不知道该怎么做。 我想:用分支y覆盖分支x:

hg update x
hg commit --close-branch -m 'closing branch x, will be overwriten with branch y'
hg update y
hg branch -f x
hg ci

但我无法更新到x。如何解决/强迫这个?

1 个答案:

答案 0 :(得分:0)

我使用了MQ扩展:

hg qinit
hg qimport -r 4:tip
hg qpop -a
hg qdelete 4.diff
hg qpush -a
hg qfinish -a

虽然有效,但经过一次拉动后被移除的东西重新进入..

但是,我刚从tip使用同名的-f创建了一个新的分支。 这对我来说足够好。无法删除“错误”分支,因为它已经发布了“瓶子”。

相关问题