]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
parser: extend SERIES_DELAY_INTERVAL
authorDaniel Axtens <dja@axtens.net>
Mon, 21 Oct 2019 05:44:31 +0000 (16:44 +1100)
committerDaniel Axtens <dja@axtens.net>
Tue, 29 Oct 2019 04:33:36 +0000 (15:33 +1100)
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>
patchwork/parser.py

index be1e51652dd343db2be6bffff395d9c0005da4cd..c794f093c412f39090510621b9e1faff265dcff2 100644 (file)
@@ -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 = (