【问题标题】:How to get Beyond Compare to handle .hgtags files correctly?如何让 Beyond Compare 正确处理 .hgtags 文件?
【发布时间】:2017-02-08 08:09:27
【问题描述】:
我们最近从 P4Merge 切换到 BeyondCompare 以使用我们的 Hg 存储库。
使用 P4Merge,当您合并分支时,.hgtags 中总是存在冲突,但是让 P4Merge 执行它的默认操作会导致正确的合并 .hgtags。
使用 BeyondCompare - 它似乎只采用 .hgtags 之一,而不是合并任何差异。这会导致丢失很多标签。
我们如何配置 BeyondCompare 以实际合并该文件的更改?
【问题讨论】:
标签:
mercurial
beyondcompare
.hgtags
【解决方案1】:
在 Ubuntu Linux 16.04 上使用 Beyond Compare 4.1.9 和 Mercurial 3.7.3,在拉取和更新冲突的 .hgtags 后运行 hg merge 会在 Beyond Compare 的 Text Merge 中启动 .hgtags 文件,并允许我合并它们。您的 .hgrc 配置可能存在问题。
这是在我的 Ubuntu 系统上用于 diff 和 merge 的 .hgrc:
[extensions]
# uncomment these lines to enable some popular extensions
# (see "hg help extensions" for more info)
#
# pager =
# progress =
# color =
hgext.extdiff =
[extdiff]
cmd.bcomp = bcompare
opts.bcomp = -ro
[merge-tools]
bcomp.executable = bcompare
bcomp.args = $local $other $base $output
bcomp.priority = 1
bcomp.premerge = True
bcomp.gui = True
[ui]
merge = bcomp
如果您使用的是 Windows 或 Mac,请告诉我。