# HG changeset patch # User Simon Heimberg # Date 2014-01-07 21:29:57 # Node ID cc09cfea3dd4881cac9e730fa4ad3a58bf22aaf1 # Parent 2dad90bdf29d4f6fd331bd5cb01f45b422cc863f check-code: print debug output when an ignore pattern matches diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -495,6 +495,9 @@ def checkfile(f, logfunc=_defaultlogger. l = prelines[n] if ignore and re.search(ignore, l, re.MULTILINE): + if debug: + print "Skipping %s for %s:%s (ignore pattern)" % ( + name, f, n) continue bd = "" if blame: