Ignoring trivial changes

Marcin Kasperski Marcin.Kasperski at mekk.waw.pl
Tue Mar 19 08:16:45 UTC 2019


"Boylan, Ross" <Ross.Boylan at ucsf.edu> writes:

> Is there a way to associate different diff tools with different file extensions?
> I did this before (code now vanished), and am not sure how I got
> around this.

Not sure. But it is easy to add command spawning custom diff
program. Sth like:

   [extdiff]
   cmd.mydiff = /wherever/my/script/is

   [diff-tools]
   mydiff.diffargs=--L1 '$plabel1' --L2 '$clabel' $parent $child

and you get 

    hg mydiff  «normal-diff-args»

command. See hg help -e extdiff for details (including list of possible
$args).





More information about the Mercurial mailing list