Mercurial INI (hgrc) ui "merge" 选项允许什么?

What is allowed in the Mercurial INI (hgrc) ui "merge" option?

Mercurial 可以使用 mercurial.ini(或 .hgrc)文件进行配置。在 [ui] 部分 (docs) 中有一个 merge 选项。

此选项仅记录如下:

merge

The conflict resolution program to use during a manual merge.

在我当前的配置中,我只有一行:

merge = kdiff3

但是此设置允许的语法是什么?例如,我可以为指定的程序提供命令行选项吗?我可以使用绝对路径吗?等等

谢谢


注意 - 上面引用的文档确实建议查看另一个 link 以获取更多相关信息 (https://www.selenic.com/mercurial/hg.1.html#merge-tools),但这并没有具体涵盖我感兴趣的配置部分。

该方法不是向 [ui]\merge 条目添加选项,而是在其他地方进一步配置合并工具。

mercurial wiki 中关于 kdiff3 的页面更详细地介绍了如何使用 [extdiff][merge-tools] 部分 configure kdiff3 with mercurial。摘录:

[extensions]
hgext.extdiff =

[extdiff]
cmd.kdiff3 =

[merge-tools]
kdiff3.args = $base $local $other -o $output

这将添加一个新的图形差异命令 hg kdiff3(使用 ExtdiffExtension),并告诉 Mercurial 使用 kdiff3 进行合并。