equal
deleted
inserted
replaced
57 |
57 |
58 def checkcommit(commit, node=None): |
58 def checkcommit(commit, node=None): |
59 exitcode = 0 |
59 exitcode = 0 |
60 printed = node is None |
60 printed = node is None |
61 hits = [] |
61 hits = [] |
|
62 signtag = (afterheader + |
|
63 r'Added (tag [^ ]+|signature) for changeset [a-f0-9]{12}') |
|
64 if re.search(signtag, commit): |
|
65 return 0 |
62 for exp, msg in errors: |
66 for exp, msg in errors: |
63 for m in re.finditer(exp, commit): |
67 for m in re.finditer(exp, commit): |
64 end = m.end() |
68 end = m.end() |
65 trailing = re.search(r'(\\n)+$', exp) |
69 trailing = re.search(r'(\\n)+$', exp) |
66 if trailing: |
70 if trailing: |