Mercurial > hg
diff contrib/check-code.py @ 15284:ebeac9c41456 stable
merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 16 Oct 2011 22:15:43 -0500 |
parents | aeeb2afcdc25 d4addef0ec74 |
children | 4b71c17caeb8 |
line wrap: on
line diff
--- a/contrib/check-code.py Sun Oct 16 20:26:20 2011 -0500 +++ b/contrib/check-code.py Sun Oct 16 22:15:43 2011 -0500 @@ -69,6 +69,7 @@ (r'ls\s+[^|\n-]+\s+-', "options to 'ls' must come before filenames"), (r'[^>\n]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"), (r'stop\(\)', "don't use 'stop' as a shell function name"), + (r'(\[|\btest\b).*-e ', "don't use 'test -e', use 'test -f'"), ], # warnings []