hooks: Explain the case-sensitivity of the regexps am: 4439d863ca
am: c9a1a1244b
Change-Id: I1529c93a1a084cf34cd0847a5f783d8cb5833bd8
diff --git a/rh/hooks.py b/rh/hooks.py
index c0071ae..b764c1b 100644
--- a/rh/hooks.py
+++ b/rh/hooks.py
@@ -340,8 +340,8 @@
found.append(line)
if not found:
- error = ('Commit message is missing a "%s:" line. It must match:\n'
- '%s') % (field, regex)
+ error = ('Commit message is missing a "%s:" line. It must match the\n'
+ 'following case-sensitive regex:\n\n %s') % (field, regex)
else:
return
@@ -364,8 +364,8 @@
found.append(line)
if len(found) == 0:
- error = ('Commit message is missing a "%s:" line. It must match:\n'
- '%s') % (field, regex)
+ error = ('Commit message is missing a "%s:" line. It must match the\n'
+ 'following case-sensitive regex:\n\n %s') % (field, regex)
elif len(found) > 1:
error = ('Commit message has too many "%s:" lines. There can be only '
'one.') % (field,)
@@ -376,8 +376,10 @@
project, commit, error=error)]
-TEST_MSG = """Commit message is missing a "Test:" line. It must match:
-%s
+TEST_MSG = """Commit message is missing a "Test:" line. It must match the
+following case-sensitive regex:
+
+ %s
The Test: stanza is free-form and should describe how you tested your change.
As a CL author, you'll have a consistent place to describe the testing strategy