summaryrefslogtreecommitdiff
path: root/scripts/maint/lintChanges.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-12-22 10:00:34 -0500
committerNick Mathewson <nickm@torproject.org>2014-12-22 10:00:34 -0500
commit845d92295f2e4542763d09c74b522a653326006e (patch)
treeb1013a13afe74de7d0053f62e1dbd16e846e3449 /scripts/maint/lintChanges.py
parent441a481bb8ad3639d400f304cc4771e099830cfc (diff)
downloadtor-845d92295f2e4542763d09c74b522a653326006e.tar.gz
tor-845d92295f2e4542763d09c74b522a653326006e.zip
have lintchanges check header format.
Diffstat (limited to 'scripts/maint/lintChanges.py')
-rwxr-xr-xscripts/maint/lintChanges.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py
index 2e57295860..fcadc5e505 100755
--- a/scripts/maint/lintChanges.py
+++ b/scripts/maint/lintChanges.py
@@ -28,6 +28,9 @@ def lintfile(fname):
lines = contents.split("\n")
isBug = ("bug" in lines[0] or "fix" in lines[0])
+ if not re.match(r'^ +o (.*)', contents):
+ warn("header not in format expected")
+
contents = " ".join(contents.split())
if isBug and not re.search(r'(\d+)', contents):