Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 20598:e57e2da803aa
solaris: diff -u emits "No differences encountered"
Solaris diff -u isn't silent when two files are identical, and tests that
don't account for that will fail. Fix those tests, and introduce a check
that prevents reintroduction.
author | Danek Duvall <danek.duvall@oracle.com> |
---|---|
date | Wed, 19 Feb 2014 13:46:49 -0800 |
parents | f1a3ae7c15df |
children | a61ed1c2d7a7 |
line wrap: on
line diff
--- a/contrib/check-code.py Fri Feb 14 00:34:20 2014 +0100 +++ b/contrib/check-code.py Wed Feb 19 13:46:49 2014 -0800 @@ -121,6 +121,7 @@ (r'^( *)\t', "don't use tabs to indent"), (r'sed (-e )?\'(\d+|/[^/]*/)i(?!\\\n)', "put a backslash-escaped newline after sed 'i' command"), + (r'^diff *-\w*u.*$\n(^ \$ |^$)', "prefix diff -u with cmp"), ], # warnings [