Three Monkeys, Three Typewriters, Two Days

August 11, 2009

Whitespace-ignoring diffs with Mercurial

Mercurial's -w switch to diff is more or less broken. If you're on a platform which has a sane diff program, you can use the following in your hgrc instead:

hgext.extdiff =

cmd.wdiff = diff
opts.wdiff = -p -U 8 -w -r -N

Then use hg wdiff the same way you'd have used hg diff.

Posted by bzbarsky at August 11, 2009 3:49 PM