On 04/08/2018 15:36, Martin Gagnon wrote:
You can try to add "C:\Program Files\WinMerge" to your PATH environment variable.
Then start a cmd window and try if it works by just typing winmergeu.

If it's works, this should works

    fossil set gdiff-command winmergeu
    fossil gdiff myfile.txt

Thanks for the tip.

"C:\Program Files\WinMerge" was already in my system PATH:

d:\Temp>echo %PATH%
C:\Program Files\Common Files\Oracle\Java\javapath;… C:\Program Files\WinMerge;C:\Program Files\UltraEdit\

And "d:\Temp>winmergeu" does launch Winmerge as expected.

Next, I added the shorter version:

d:\Temp>setx /M PATH "%PATH%;c:\PROGRA~1\WinMerge

d:\Temp>echo %PATH%
…C:\Program Files\WinMerge;C:\Program Files\UltraEdit\;C:\Program Files\Mercurial;"c:\PROGRA~1\WinMerge

d:\Temp>fossil set gdiff-command WinMergeU.exe

d:\Temp>fossil settings
gdiff-command        (local)  WinMergeU.exe

d:\Temp>fossil gdiff test.html


fossil-users mailing list

Reply via email to