contrib/check-commit
changeset 28042 08e0c4082903
parent 28013 e529b5f1b9e3
child 28043 ac4684c21f73
equal deleted inserted replaced
28037:54c896f8bb79 28042:08e0c4082903
    21 afterheader = commitheader + r"(?!#)"
    21 afterheader = commitheader + r"(?!#)"
    22 beforepatch = afterheader + r"(?!\n(?!@@))"
    22 beforepatch = afterheader + r"(?!\n(?!@@))"
    23 
    23 
    24 errors = [
    24 errors = [
    25     (beforepatch + r".*[(]bc[)]", "(BC) needs to be uppercase"),
    25     (beforepatch + r".*[(]bc[)]", "(BC) needs to be uppercase"),
    26     (beforepatch + r".*[(]issue \d\d\d", "no space allowed between issue and number"),
    26     (beforepatch + r".*[(]issue \d\d\d",
       
    27      "no space allowed between issue and number"),
    27     (beforepatch + r".*[(]bug(\d|\s)", "use (issueDDDD) instead of bug"),
    28     (beforepatch + r".*[(]bug(\d|\s)", "use (issueDDDD) instead of bug"),
    28     (commitheader + r"# User [^@\n]+\n", "username is not an email address"),
    29     (commitheader + r"# User [^@\n]+\n", "username is not an email address"),
    29     (commitheader + r"(?!merge with )[^#]\S+[^:] ",
    30     (commitheader + r"(?!merge with )[^#]\S+[^:] ",
    30      "summary line doesn't start with 'topic: '"),
    31      "summary line doesn't start with 'topic: '"),
    31     (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"),
    32     (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"),