Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 15544:53ef627cda30
check-code: fix return code initialization
Don't crash when nothing is tested, but return failure when other files than
the last one fails.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 22 Nov 2011 01:37:26 +0100 |
parents | 7917a104a285 |
children | ec8a49c46d7e |
line wrap: on
line diff
--- a/contrib/check-code.py Mon Nov 21 13:11:17 2011 -0600 +++ b/contrib/check-code.py Tue Nov 22 01:37:26 2011 +0100 @@ -420,8 +420,8 @@ else: check = args + ret = 0 for f in check: - ret = 0 if not checkfile(f, maxerr=options.per_file, warnings=options.warnings, blame=options.blame, debug=options.debug, lineno=options.lineno):