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 | TrackBack


Posted by: sgautherie on October 7, 2009 7:20 PM

Great, but people keep asking me how to do that.... the more places it is, the better, I guess. ;)

Posted by: Boris on October 7, 2009 7:28 PM
Post a comment