Mercurial中的合并问题
我在合并 HG 中的两个不同头时遇到问题。当我在两个版本(屏幕截图中的 512 和 502)之间进行更新时,文件之间存在差异。然而,当我尝试将 512 合并到 502 时,它说没有任何内容可以合并。如果我更新到版本。 512 并尝试将 502 合并到 512 我收到以下错误消息:“与工作目录祖先合并没有效果”。从错误消息来看,502 似乎是 512 的父级,但根据图表,它们看起来像是两个不同的头。我做错了什么或误解了什么?
I have a problem merging what I think is two different heads in HG. When I update between the two revisions (512 and 502 in the screen shot) there are differences between the files. However when I try to merge 512 to 502 it says that there's nothing to merge. If I update to rev. 512 and try to merge 502 to 512 I get the following error message instead: "merging with a working directory ancestor has no effect". Judging by the error message it looks like 502 is a parent of 512 but based on the graph they look like two different heads. What am I doing wrong or misunderstanding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该图非常清楚地表明 502 根本不是一个头,就在红色处。您的视图正在过滤掉变更集,这些变更集必须显示 502 是 512 的祖先。
您可以禁用过滤器并重新发布图像,或者更好地提供命令行
hg glog
的输出命令?最坏的情况下,您可以
hg update 502
提交一个不做任何更改,其父项是 502,然后将其与 512 合并,但您最好全面了解/了解正在发生的情况。The graph pretty clearly shows that 502 isn't a head at all, right there in red. Your view is filtering away changesets, changesets that must show that 502 is an ancestor of 512.
Can you disable the filter and re-post the image, or better yet provide the output of the command line
hg glog
command?Worst case you can
hg update 502
commit a do-nothing change, whose parent is 502, and then merge that with 512, but you're better off getting the full picture/understanding of what's going on.