From patchwork Tue Jan 12 08:56:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1,of,5,v2] check-commit: fix summary length regexp From: timeless@mozdev.org X-Patchwork-Id: 12688 Message-Id: To: mercurial-devel@selenic.com Date: Tue, 12 Jan 2016 02:56:33 -0600 # HG changeset patch # User timeless # 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"),