Mercurial > public > mercurial-scm > hg-stable
comparison contrib/check-code.py @ 20243:cc09cfea3dd4
check-code: print debug output when an ignore pattern matches
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Tue, 07 Jan 2014 22:29:57 +0100 |
parents | 2dad90bdf29d |
children | ada289dfceb0 5db105f216c3 |
comparison
equal
deleted
inserted
replaced
20242:2dad90bdf29d | 20243:cc09cfea3dd4 |
---|---|
493 pos += step | 493 pos += step |
494 n += 1 | 494 n += 1 |
495 l = prelines[n] | 495 l = prelines[n] |
496 | 496 |
497 if ignore and re.search(ignore, l, re.MULTILINE): | 497 if ignore and re.search(ignore, l, re.MULTILINE): |
498 if debug: | |
499 print "Skipping %s for %s:%s (ignore pattern)" % ( | |
500 name, f, n) | |
498 continue | 501 continue |
499 bd = "" | 502 bd = "" |
500 if blame: | 503 if blame: |
501 bd = 'working directory' | 504 bd = 'working directory' |
502 if not blamecache: | 505 if not blamecache: |