Mercurial > hg-stable
diff contrib/check-code.py @ 13012:8b167ee8242f
check-code: catch 'ls filename --option' case as per 6bdae8ea0b48
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Wed, 17 Nov 2010 09:37:57 +0100 |
parents | 34034e55424f |
children | 53391819f195 |
line wrap: on
line diff
--- a/contrib/check-code.py Tue Nov 02 17:44:19 2010 +0100 +++ b/contrib/check-code.py Wed Nov 17 09:37:57 2010 +0100 @@ -64,6 +64,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"), ] testfilters = [