[PATCH 6 of 6] check-code: print debug output when an ignore pattern matches

Simon Heimberg simohe at besonet.ch
Tue Jan 7 15:31:22 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 ecc5bae03e466cdd7c492ebaf23b33ed51fb5007
# Parent  82f553e09d5345de54812c257bdc2a819d8027e3
check-code: print debug output when an ignore pattern matches

diff -r 82f553e09d53 -r ecc5bae03e46 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