[PATCH 2 of 2] check-code: block non-portable pipe-and

timeless timeless at mozdev.org
Thu Oct 15 19:39:07 CDT 2015


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1444955772 14400
#      Thu Oct 15 20:36:12 2015 -0400
# Node ID 728636bf5221c5ddcca21cb83d51b5954e8e7566
# Parent  abfb14db2b1492217ff3b97a734847385ea530f1
check-code: block non-portable pipe-and

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -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
   [


More information about the Mercurial-devel mailing list