aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/patch_series.py
Commit message (Collapse)AuthorAge
* Fix over intended linesGuido Günther2019-07-21
| | | | | | (rightfully tripping up newer flake8) Gbp-Dch: Ignore
* Dep3Patch: Ignore MIME headersSimon McVittie2019-03-21
| | | | | | | | | | | Otherwise, if we import a patch containing non-ASCII characters exported by `gbp pq export` or `git format-patch` using DEP-3 syntax, we'd misinterpret these fields as semantically significant and copy them into pseudo-headers, causing them to be duplicated in the commit's long description. Closes: #924478 Signed-off-by: Simon McVittie <smcv@debian.org>
* PatchSeries: Don't fail if there's only a patch end markerGuido Günther2018-12-16
| | | | | | | | If the patch only has '---' we pass empty data to git-mail-info otherwise. Thanks: James Cowgill for the detailed report Closes: #916545
* PatchSeries: Only pass patch description and header to git-mailinfoGuido Günther2018-11-08
| | | | | | | | | | | | | | There are patches around that use Content-Transfer-Encoding: base64 but the actual patch after '---' is unencoded ascii resulting in garbage after the patch description when imported into a patch queue. Since we're discarding the patch part of git-mailinfo anyway don't pass this on in the first place. Closes: #912426
* Fix flake8's W605 (invalid escape sequence)Guido Günther2018-10-15
| | | | | | See also https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* pq import: Always put DEP-3 headers as pseudo-headersBen Hutchings2018-08-24
| | | | | | If there are any non-git DEP-3 header fields, put them at the top of the body text, regardless of whether Description or Subject is used. Also put a blank line between them and the rest of the message body.
* pq import: Look for DEP-3 header fields even if git mailimport succeedsBen Hutchings2018-08-24
| | | | Closes: #905934
* 8bit GuidoGuido Günther2018-02-26
|
* Make flake8 happyGuido Günther2018-01-01
| | | | Gbp-Dch: Ignore
* patch_series: Don't fail on decoding errors when looking for DEP3 headersGuido Günther2017-12-31
| | | | Closes: #885929
* patch_series: Remove duplicate functionsGuido Günther2017-12-31
| | | | | No need to repeat them in Dep3Patch since the parent class Patch already has them.
* patch_series: don't read dep3 info multiple timesGuido Günther2017-12-31
|
* patch_series: Properly chain up to parent classGuido Günther2017-12-31
| | | | Insted of duplicating the logic use the parent classes _read_info.
* pq: Parse DEP3 headersMaximiliano Curia2017-12-24
| | | | | | | | | | | | | | | | | | Currently the patch headers in DEP3 format are partially supported, as git's mailinfo only reads the From and Subject fields from the first paragraph. But the default in dep3 patches is Description and Author, that are ignored by git. Even worse, when this fields are in the first paragraph (again the default) git mailinfo drops all the contained information. This patch parses the dep3 headers if git's mailinfo couldn't obtain any useful information, any header other than Subject|Description and Author|From is appended to the patch message. The description field is splitted in first line for the short description and the rest is prepended to the patch message. Closes: #785274
* Don't fail on unicode errors when importing patchesGuido Günther2017-09-15
| | | | Use backslashreplace not lose data.
* patch_series: don't let "git mailinfo" sanitize the subjectGuido Günther2017-08-31
| | | | | | | This would strip away text in []. This improves the import/export round trip. Closes: #872354
* patch_series: Make sure we close the temp fileGuido Günther2017-08-28
|
* patch_seris: report decoding errors when reading patch filesGuido Günther2017-08-27
|
* patch_series: port to python3Guido Günther2017-08-02
|
* Use cls consistentlyGuido Günther2016-11-16
| | | | | | So far we used a mixture of klass and cls to denote the class variable. Git-Dch: Ignore
* pq: strip comments with multiple leading whitespaceGuido Günther2016-07-31
| | | | Really closes #825536
* PatchSeries: compile patch level regex only onceGuido Günther2016-05-28
|
* PatchSeries: Strip comment from patch namesGuido Günther2016-05-28
| | | | Closes: #825536
* Patch$eries: minor indentation cleanupGuido Günther2016-05-28
|
* Change "it's" to "its" in comments where appropriateAnthony Fok2015-09-10
|
* Fix FSF address - thanks rpmlintEvgeni Golov2015-06-22
| | | | use gnu.org/licences instead of a postal address, as suggested by Guido
* Make pylint happyGuido Günther2015-06-02
|
* Don't use dict.has_key()Guido Günther2015-02-20
| | | | Not existent in Python3
* patchseries: strip numbering when guessing subject from filenameMarkus Lehtonen2015-02-18
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Use open() instead of file()Guido Günther2013-08-28
| | | | since the later doesn't exist in python3
* Discard git mailinfo's error messageGuido Günther2013-04-27
| | | | since we don't expect it to succeed.
* Make exception syntax consistentGuido Günther2012-07-02
|
* Rename gbp.pq to gbp.patch_seriesGuido Günther2011-12-26
since that's what it currently handles.