]> git.ozlabs.org Git - patchwork/commit
parser: Add support for rename-only patches
authorJeremy Kerr <jk@ozlabs.org>
Sun, 13 Oct 2013 05:40:00 +0000 (13:40 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 13 Oct 2013 05:42:37 +0000 (13:42 +0800)
commit3dbec78dbd8e80729cf208d1e68f550b7d7ba5a9
tree70319dbb066258f887d9b628aa0e7ad7020964a9
parent9d22330effa8d433ec39edc37ca4e3a1e3206b85
parser: Add support for rename-only patches

Yann E. MORIN reported a problem where patchwork drops patches with only
renames:

 http://lists.busybox.net/pipermail/buildroot/2013-October/079999.html

This change fixes the issue by adding a new state for patch 'meta'
headers: header test which is not parsed as a hunk, but has the same
behaviour as a hunk in that it will cause the patchbuf to be populated.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/parser.py
apps/patchwork/tests/mail/0008-git-rename.mbox [new file with mode: 0644]
apps/patchwork/tests/mail/0009-git-rename-with-diff.mbox [new file with mode: 0644]
apps/patchwork/tests/patchparser.py