Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 10802:6e4cf8319f54 stable
check-code.py: Check for bare ^
Solaris sh interprets ^ as some kind of piping symbol.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 31 Mar 2010 11:07:46 +0200 |
parents | 95c7c4b7e67a |
children | cd0c49bdbfd9 |
line wrap: on
line diff
--- a/contrib/check-code.py Mon Mar 29 09:15:08 2010 -0300 +++ b/contrib/check-code.py Wed Mar 31 11:07:46 2010 +0200 @@ -53,6 +53,7 @@ (r'\$PWD', "don't use $PWD, use `pwd`"), (r'[^\n]\Z', "no trailing newline"), (r'export.*=', "don't export and assign at once"), + ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), ] testfilters = [