views:

1901

answers:

3

Hi,

Everytime that I do an 'hg diff file.ext' I end up using a console diff application. Is there a way to change that? I can't find a reference in Mercurial documentation (I'm not talking about merge!). I would like to use Kdiff3 or WinMerge (I'm using Windows).

Thanks for your time. Best regards.

A: 

Hi,

Hope this post helps.

Bogdan Maxim
It doesn't help. He was talking about the 'diff' command not the 'merge' command, which as a completely different configuration mechanism.
Ry4an
+20  A: 

I've solved this using a Mercurial built-in extension... I just have to add the following lines to Mercurial.ini (on Mercurial folder):

[extensions]
hgext.extdiff=

[extdiff]
cmd.vdiff = kdiff3

When I want to use kdiff3 instead of diff I only have to use:

hg vdiff file.ext
Matías
Just what I was looking for, +1
Nailuj
A: 

With this config

[extdiff]
cmd.kdiff3 =

I use this command to see diffs:

hg kdiff

This shows a directory tree with all files that have changed. You click a file to see diffs for just the file. You may be able to add a file parameter to the command to just see one file.

More info here.

Marcus