changeset 13301:4b07578967e6

check-code: do not complain about 'ls x | foo -v' Such a line was introduced in test-subrepo-git.t in 5dda6c708138, which made check-code confused.
author Martin Geisler <mg@aragost.com>
date Wed, 26 Jan 2011 12:35:02 +0100
parents 23bbb5b888ea
children a4e0908ce35b
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Mon Jan 10 16:02:41 2011 -0500
+++ b/contrib/check-code.py	Wed Jan 26 12:35:02 2011 +0100
@@ -65,7 +65,7 @@
     ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
     (r'^source\b', "don't use 'source', use '.'"),
     (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
-    (r'ls\s+[^-]+\s+-', "options to 'ls' must come before filenames"),
+    (r'ls\s+[^|-]+\s+-', "options to 'ls' must come before filenames"),
 ]
 
 testfilters = [