Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 26777:df1a29ec45bf
check-code: block non-portable pipe-and
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 15 Oct 2015 20:36:12 -0400 |
parents | b3f7516fa50e |
children | b81b8dbecc26 |
line wrap: on
line diff
--- a/contrib/check-code.py Thu Oct 15 20:32:01 2015 -0400 +++ b/contrib/check-code.py Thu Oct 15 20:36:12 2015 -0400 @@ -125,6 +125,7 @@ (r'^diff *-\w*u.*$\n(^ \$ |^$)', "prefix diff -u with cmp"), (r'seq ', "don't use 'seq', use $TESTDIR/seq.py"), (r'\butil\.Abort\b', "directly use error.Abort"), + (r'\|&', "don't use |&, use 2>&1"), ], # warnings [