带有 Hg 的 tortoisemerge 报告所有行已更改
我想将 TortoiseMerge 与 Mercurial 一起使用来解决冲突,但它报告了 theirs
和 mine
中添加的每一行,就好像它
在我的 Mercurial.ini 中 没有正确比较一样:
[ui]
merge = TortoiseMerge
[merge-tools]
TortoiseMerge.executable=C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe
TortoiseMerge.args=/mine:$local /theirs:$other /base:$base -o /merged:$output
我正在使用 Hg 1.7.5
发生了什么事?
更新:使用 KDiff 或 BeyondCompare 时,基数始终为空。
谢谢
I'd like to use TortoiseMerge with Mercurial to resolve conflicts, but its reporting every line in theirs
and mine
as added as though its not comparing properly
here is my mercurial.ini:
[ui]
merge = TortoiseMerge
[merge-tools]
TortoiseMerge.executable=C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe
TortoiseMerge.args=/mine:$local /theirs:$other /base:$base -o /merged:$output
I'm using Hg 1.7.5
What's going on?
Update: When using KDiff or BeyondCompare, the base is always empty.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的设置看起来正确。
这是基本修订版中没有文件副本的症状,在这种情况下,Mercurial 的行为就好像该文件存在但为空。
有几种方法可以弄清楚这里发生了什么。如果不涉及副本或重命名,您应该能够简单地执行以下操作:
..确定合并的祖先,然后:
..确定文件是否确实存在。
或者,您可以运行“hg merge --debug”或“hg update --debug”来查看为合并选择的变更集和文件(包括重命名/复制详细信息)。
如果您发现该文件存在在 Mercurial 选择的共同祖先中,那么您应该在以下位置报告错误(包括调试输出):
https://www.mercurial-scm.org/wiki/BugTracker
Your setup appears correct.
This is symptomatic of having no copy of the file in the base revision, in which case Mercurial acts as if the file was present but empty.
There are a couple ways of figuring out what's going on here. If there are no copies or renames involved, you should be able to simply do:
..to determine the ancestor of the merge, then:
..to determine if the file was in fact present.
Alternately, you can run 'hg merge --debug' or 'hg update --debug' to see what changeset and file it's choosing for the merge (including rename/copy details).
If you find that the file is present in the common ancestor Mercurial chooses, then you should report a bug (including your debug output) at:
https://www.mercurial-scm.org/wiki/BugTracker