contrib/check-commit
branchstable
changeset 30843 2fb3ae89e4e1
parent 30061 8e805cf27caa
child 40308 47084b5ffd80
equal deleted inserted replaced
30842:94af7d0c812f 30843:2fb3ae89e4e1
    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: