summaryrefslogtreecommitdiff
path: root/patchwork
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2019-10-21 16:44:31 +1100
committerDaniel Axtens <dja@axtens.net>2019-10-29 15:33:36 +1100
commitef486f173b480533c0f80d81a967c8ebe6f1210f (patch)
tree89a391df918e6d999eeaca7b3991d8798cf45871 /patchwork
parent6bd63bd9313b2d6cdccb86bbec55636ac954364d (diff)
downloadpatchwork-ef486f173b480533c0f80d81a967c8ebe6f1210f.tar
patchwork-ef486f173b480533c0f80d81a967c8ebe6f1210f.tar.gz
parser: extend SERIES_DELAY_INTERVAL
There was a series on linuxppc today that was spread over ~13 mins, so the last two patches were put into a new series. Extend the time window to 20 mins, and attempt to document it. Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'patchwork')
-rw-r--r--patchwork/parser.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/patchwork/parser.py b/patchwork/parser.py
index be1e516..c794f09 100644
--- a/patchwork/parser.py
+++ b/patchwork/parser.py
@@ -35,7 +35,12 @@ _hunk_re = re.compile(r'^\@\@ -\d+(?:,(\d+))? \+\d+(?:,(\d+))? \@\@')
_filename_re = re.compile(r'^(---|\+\+\+) (\S+)')
list_id_headers = ['List-ID', 'X-Mailing-List', 'X-list']
-SERIES_DELAY_INTERVAL = 10
+# How many minutes must pass since the first email of a series before we
+# say that subsequent mails are definitely not part of that same series?
+#
+# Only used when there are not proper references to determine the series
+# (such as when the mail is not threaded)
+SERIES_DELAY_INTERVAL = 20
# @see https://git-scm.com/docs/git-diff#_generating_patches_with_p
EXTENDED_HEADER_LINES = (