]> 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>
Tue, 4 Jun 2019 14:58:05 +0000 (15:58 +0100)
commitfc1d7505991474b07638a87c0834157d12e1e476
tree0e295b8a0c9fccb849eab52666a0dceec5411d42
parent753e4572d7e8b836daf6087820c49637b3b23602
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>
patchwork/parser.py
patchwork/tests/mail/0022-git-mode-change.mbox [new file with mode: 0644]
patchwork/tests/test_parser.py