Is possible to change the default diff tool in Mercurial?

后端 未结 4 874
[愿得一人]
[愿得一人] 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:57

    I just had this problem a few minutes ago; I just installed it and added its path (default is at c:\program files\kdiff3) to my system PATH e.v. Restarted my window to pick up the new path, and "hg kdiff3" just worked. As it turns out the following is in my base "mercurial.ini" file, this allows the kdiff3 to work for all hg repos on the system.

    [extensions]  
    hgext.extdiff =  
    
    [extdiff]  
    cmd.kdiff3 =
    
    [merge-tools]  
    kdiff3.args = $base $local $other -o $output
    

提交回复
热议问题