From: Daniel Axtens Date: Mon, 21 Oct 2019 05:44:31 +0000 (+1100) Subject: parser: extend SERIES_DELAY_INTERVAL X-Git-Tag: v2.2.0-rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef486f173b480533c0f80d81a967c8ebe6f1210f;p=thirdparty%2Fpatchwork.git 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 Signed-off-by: Daniel Axtens --- diff --git a/patchwork/parser.py b/patchwork/parser.py index be1e5165..c794f093 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 = (