[PATCH 6 of 6 V2] check-code: print debug output when an ignore pattern matches
Simon Heimberg
simohe at besonet.ch
Thu Jan 9 08:52:38 CST 2014
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1389130197 -3600
# Tue Jan 07 22:29:57 2014 +0100
# Node ID 5e0d279cd7a2c226016a3102cc1d2817d8748009
# Parent 21914f89ffa474a65c557cda0858d216cf2510c2
check-code: print debug output when an ignore pattern matches
diff -r 21914f89ffa4 -r 5e0d279cd7a2 contrib/check-code.py
--- a/contrib/check-code.py Tue Jan 07 22:29:51 2014 +0100
+++ b/contrib/check-code.py Tue Jan 07 22:29:57 2014 +0100
@@ -496,6 +496,9 @@
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:
More information about the Mercurial-devel
mailing list