# HG changeset patch # User Matt Mackall # Date 2010-01-29 04:44:18 # Node ID 5da892be349719fb856d44d23d68b2be5661bab2 # Parent cc0340ef47f74fa96aec9dcb00f1a90a9fb903f0 check-code: add some ignore hints diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -135,11 +135,15 @@ for f in check: if not re.match(match, f): continue pre = post = open(f).read() + if "no-" + "check-code" in pre: + break for p, r in filters: post = re.sub(p, r, post) # print post # uncomment to show filtered version z = enumerate(zip(pre.splitlines(), post.splitlines(True))) for n, l in z: + if "check-code" + "-ignore" in l[0]: + continue lc = 0 for p, msg in pats: if re.search(p, l[1]):