Question

I am in the distinctly unfortunate circumstance of working in an environment which worries little of the deep evil known as "trailing whitespace"... But, alas, the enlightened Mercurial persists in warning me, by means of red highlights in diffs, that code I will be checking in contains this unholy thing.

So, is there any way to tell Mercurial to ignore trailing whitespace in diffs?

I've tried all the obvious --ignore-* commands, and they seem to do nothing.

Thanks!

Was it helpful?

Solution

Put in your hgrc file:

[color]
diff.trailingwhitespace = none

Read more about customizing color schemes on the ColorExtension wiki page

OTHER TIPS

https://www.mercurial-scm.org/bts/issue127 tracks the fact that the -w option does not work as you might expect.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top