contrib/check-commit
changeset 25379 894bcdbb9e7a
parent 25137 85fc79707cb2
child 25643 6f6c97d29a1e
equal deleted inserted replaced
25378:98b5676323db 25379:894bcdbb9e7a
    27     (r"^# .*\n[A-Z][a-z]\S+", "don't capitalize summary lines"),
    27     (r"^# .*\n[A-Z][a-z]\S+", "don't capitalize summary lines"),
    28     (r"^# .*\n[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
    28     (r"^# .*\n[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
    29     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
    29     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
    30     (r"^# .*\n.{78,}", "summary line too long (limit is 78)"),
    30     (r"^# .*\n.{78,}", "summary line too long (limit is 78)"),
    31     (r"^\+\n \n", "adds double empty line"),
    31     (r"^\+\n \n", "adds double empty line"),
    32     (r"\+\s+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
    32     (r"^\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
    33 ]
    33 ]
    34 
    34 
    35 node = os.environ.get("HG_NODE")
    35 node = os.environ.get("HG_NODE")
    36 
    36 
    37 if node:
    37 if node: