D5429: check-commit: disallow capitalization only right after topic
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Dec 14 20:36:42 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7da54cff8743: check-commit: disallow capitalization only right after topic (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5429?vs=12860&id=12865
REVISION DETAIL
https://phab.mercurial-scm.org/D5429
AFFECTED FILES
contrib/check-commit
CHANGE DETAILS
diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -34,7 +34,7 @@
(commitheader + r"(?!merge with )[^#]\S+[^:] ",
"summary line doesn't start with 'topic: '"),
(afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"),
- (afterheader + r"[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
+ (afterheader + r"^\S+: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
(afterheader + r"\S*[^A-Za-z0-9-_]\S*: ",
"summary keyword should be most user-relevant one-word command or topic"),
(afterheader + r".*\.\s*\n", "don't add trailing period on summary line"),
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list