Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 16013:2a1d97630f7f stable
tests: don't use alias
alias doesn't work in Solaris sh.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 27 Jan 2012 03:00:03 +0100 |
parents | a153a86a472c |
children | c6c9b83a1e8a |
line wrap: on
line diff
--- a/contrib/check-code.py Fri Jan 27 02:59:59 2012 +0100 +++ b/contrib/check-code.py Fri Jan 27 03:00:03 2012 +0100 @@ -71,6 +71,7 @@ (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'"), + (r'^alias\b.*=', "don't use alias, use a function"), ], # warnings []