pq: rewrite patch export functionality
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 2 May 2013 09:57:10 +0000 (12:57 +0300)
committerGuido Günther <agx@sigxcpu.org>
Thu, 31 Oct 2013 18:17:20 +0000 (19:17 +0100)
commitc661c7153783c79c45fbe63d828b03ea0a788215
treefd2190d631e47c1f8d9b99f4949da237392eaacc
parent3092623a8841a6aa9e12902436779c8dea80598c
pq: rewrite patch export functionality

Use our own function for constructing the patch files instead of using
the format-patch command of git. This way, we get the desired output
format directly, without the need for the error-prone "format-patch,
parse patch files, mangle and re-write patch files" cycle.

Also, fix patch naming in patch generation when '--no-patch-numbers' is
used.  Previously, multiple commits with the same subject resulted in
multiple patches having the same filename. This lead into broken series
with missing patches as patch files were overwritten by the topmost
commit.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/common/pq.py
gbp/scripts/pq.py
tests/13_test_gbp_pq.py