[PATCH 1 of 5 v2] check-commit: fix summary length regexp

timeless timeless at mozdev.org
Tue Jan 12 08:56:33 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1452139120 0
#      Thu Jan 07 03:58:40 2016 +0000
# Node ID c686621f7ac9981d33d2a7f4e6fd20a7678790f3
# Parent  4571c0b383378f5eec5189e3a39c672a169ce566
check-commit: fix summary length regexp

diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -29,7 +29,7 @@
     (r"^# [^\n]*\n\S*[^A-Za-z0-9-]\S*: ",
      "summary keyword should be most user-relevant one-word command or topic"),
     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
-    (r"^# .*\n[^#].{77,}", "summary line too long (limit is 78)"),
+    (r"^# .*\n[^#].{78,}", "summary line too long (limit is 78)"),
     (r"^\+\n \n", "adds double empty line"),
     (r"^ \n\+\n", "adds double empty line"),
     (r"^\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),


More information about the Mercurial-devel mailing list