summaryrefslogtreecommitdiff
path: root/patterns.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2008-11-11 11:11:04 -0700
committerJonathan Corbet <corbet@lwn.net>2008-11-11 11:11:04 -0700
commit9a2ba8a4f5e995011e4156dc340e6f8719472234 (patch)
tree127cd60f0fd1b54fb664a6a50697a7c00fd80cc2 /patterns.py
parentaacbb5f464aff6d86d839f52f6710b3d8d252b41 (diff)
Tested-by / Reported-by credits and more
Add tracking of tested-by, reported-by, and reviewed-by. For the first two, we also track who is *giving* those credits. While I was in the neighborhood I also: - Started turning the "patch" class into something more than a bare container; this work has just begin. - Moved the report-writing code into its own file (reports.py)
Diffstat (limited to 'patterns.py')
-rw-r--r--patterns.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/patterns.py b/patterns.py
index c833c3e..9a92cf0 100644
--- a/patterns.py
+++ b/patterns.py
@@ -25,7 +25,10 @@ Prem = re.compile (r'^-[^-].*$')
Pdate = re.compile (r'^(Commit)?Date:\s+(.*)$')
Pfilea = re.compile (r'^---\s+(.*)$')
Pfileb = re.compile (r'^\+\+\+\s+(.*)$')
-
+Preview = re.compile (r'Reviewed-by:\s+([^<]+)\s+<([^>]+)>')
+Ptest = re.compile (r' tested-by:\s+([^<]+)\s+<([^>]+)>', re.I)
+Prep = re.compile (r'Reported-by:\s+([^<]+)\s+<([^>]+)>')
+Preptest = re.compile (r'reported-and-tested-by:\s+([^<]+)\s+<([^>]+)>', re.I)
#
# Merges are described with a variety of lines.
#