7

I installed meld in my Mac and i want to use this as a visual diff tool in TortoiseHg. (Note that I am using a Mac. )

I have the following configuration in my .hgrc file. But when I double clicked on a file, I got this "No visual diff tools were detected". Am I missing something in the file ?

This is getting a little bit frustrating because I have spent hours on this and still wasn't able to get a solution. Need some help here please .

[ui]
merged = /opt/local/bin/meld

[tortoisehg]
vdiff = /opt/local/bin/meld
4

2 回答 2

5

我在 osx 上遇到了同样的问题kdiff3,但我确信这个解决方案也适用meldextdiff起作用的是在 mercurial中启用扩展,然后定义kdiff3extdiff命令并在该[tortoisehg]部分中使用它。

这是我.hgrc进行了这些更改的文件:

[extensions]
extdiff =

[extdiff]
cmd.kiddf3 = /usr/local/bin/kdiff3

[tortoisehg]
vdiff = kdiff3 
于 2015-06-02T10:54:43.880 回答
0

我在我的主目录中本地安装了 TortoiseHg(因为放弃了 Ubuntu PPA)。我的 .hgrc 以以下行开头:

%include PATH_TO_THG_REPO/contrib/mergetools.rc

该文件包含各种合并和差异工具的描述。没有它 TortoiseHg 不会检测到任何东西。

一旦更改了此文件的路径(当我将 .hgrc 复制到另一台机器时),我就会收到相同的错误消息。

PS 不要忘记将 PATH_TO_THG 替换为您的特定路径。

于 2020-02-20T12:02:17.493 回答