【问题标题】:hg up <branch_name> not changing to the named branchhg up <branch_name> 不更改为命名分支
【发布时间】:2012-08-03 01:41:42
【问题描述】:

我的 mercurial 存储库是使用 subversion 存储库的迁移创建的。其他一切都很好,除了有一个我无法更新到的命名分支......在 hg 更新后它仍然在 hg 摘要中将分支显示为“默认”。

由此产生的问题是我无法关闭这个旧分支(因为 hg 仍然认为它是默认的)...随着 hg up 1.6 显示,文件正在发生变化

$ $ hg branches
default                     3456:502e03ae682b
1.6                         3080:4518f08ac918

$ hg up 1.6
553 files updated, 0 files merged, 1158 files removed, 0 files unresolved

$ hg sum
parent: 466:76362d78806a 1.6
   Updated profile and route
branch: default
commit: (clean)
update: 1909 new changesets (update)
mq:     3 unapplied

【问题讨论】:

  • hg up "1.6"hg up 3080hg up 4518f08ac918

标签: mercurial branch hgsubversion


【解决方案1】:

rev 466 有一个标签 1.6:

父级:466:76362d78806a 1.6

标签是在分支上选择的,因此请使用本地修订或哈希更新到正确的节点:

hg update 3080  
hg update 4518f08ac918

你也可以去掉 1.6 的标签,给它起个名字来减少混淆:

hg tag --remove 1.6
hg tag -r 466 1_6

【讨论】:

    猜你喜欢
    • 2014-05-02
    • 1970-01-01
    • 1970-01-01
    • 2012-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-04
    相关资源
    最近更新 更多