]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Include extended header lines in diff
authorStephen Finucane <stephen@that.guru>
Tue, 4 Jun 2019 11:55:38 +0000 (12:55 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 5 Jun 2019 10:29:44 +0000 (11:29 +0100)
commitf205495b6a9c2a0879984b9367a5b5d0e2443058
treec7accd2ea255959b64357a2cdb9c201bd346837f
parent7b141134eb97163d285daf928ab322fde27d7dc8
parser: Include extended header lines in diff

Commit 753e4572d updated the parser to consider additional header lines
when deciding where a patch message ends and the diff begins. However,
these additional lines were not captured meaning these patches didn't
have a diff associated with them and they therefore weren't patches in
the Patchwork sense of the term. Correct this and add a test.

Signed-off-by: Stephen Finucane <stephen@that.guru>
(cherry picked from commit fc1d7505991474b07638a87c0834157d12e1e476)
patchwork/parser.py
patchwork/tests/mail/0022-git-mode-change.mbox [new file with mode: 0644]
patchwork/tests/test_parser.py