Is possible to change the default diff tool in Mercurial?

后端 未结 4 881
[愿得一人]
[愿得一人] 2021-01-31 07:09

Every time I do an hg diff file.ext I end up using a console diff application. I would like to use Kdiff3 or WinMerge (I\'m using Windows).

Is there a way t

4条回答
  •  天涯浪人
    2021-01-31 07:56

    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
    

提交回复
热议问题