Commit Graph

26 Commits

Author SHA1 Message Date
Sebastian Lackner
004c3abe40 patchutils.py: Generate diff in git format. 2016-07-01 01:28:38 +02:00
Sebastian Lackner
6914bab984 patchutils.py: Use a common helper function for parsing patch hunks. 2016-04-04 04:43:05 +02:00
Sebastian Lackner
3ad772bb1f patchutils.py: Add tests for multiple patches in a single file. 2016-04-04 00:58:34 +02:00
Sebastian Lackner
a3bc186a20 patchutils.py: Move external test resources to a separate directory. 2016-04-04 00:56:14 +02:00
Sebastian Lackner
d21860deb6 patchutils.py: Get rid of 'expected' array in tests. 2016-04-04 00:24:26 +02:00
Sebastian Lackner
9e9b2716c4 patchutils.py: Avoid side-effects in asserts. 2016-04-03 23:47:43 +02:00
Sebastian Lackner
c4a321904d patchutils.py: Allow to pass io object to read_patch and _FileReader class. 2016-04-03 23:44:10 +02:00
Sebastian Lackner
f21f134546 patchutils.py: Remove is_binary() function. 2016-04-02 23:13:01 +02:00
Sebastian Lackner
bc7dbd89e0 patchutils.py: Remaining improvements for Python 3 compatibility. 2016-04-02 22:21:04 +02:00
Sebastian Lackner
74d16be256 patchutils.py: Explicitly open temporary files in non-binary mode for Python 3 compatibility. 2016-04-02 22:19:49 +02:00
Sebastian Lackner
8571c8b533 patchutils.py: Fix compatibility of StringIO with Python 3. 2016-04-02 22:16:59 +02:00
Sebastian Lackner
d3a4c072f7 patchutils.py: Add tests for read_patch function. 2016-04-02 21:22:01 +02:00
Sebastian Lackner
8bed2e61a6 patchutils.py: Avoid runtime error when parsing patch without author information. 2016-04-02 21:02:23 +02:00
Sebastian Lackner
6eb36a3a28 patchutils.py: Add tests for apply_patch function. 2016-04-02 20:25:37 +02:00
Sebastian Lackner
86f1e40597 patchutils.py: Add tests for generate_ifdef_patch function. 2016-03-26 03:13:06 +01:00
Sebastian Lackner
5e5229ecce patchutils.py: Improve handling of patches without linebreak at end of file in generate_ifdef_patch. 2016-03-26 02:54:21 +01:00
Sebastian Lackner
4b1c2ec4d6 patchutils.py: Add tests for _parse_author and _parse_subject function. 2016-03-26 02:16:39 +01:00
Sebastian Lackner
19d04e3ea1 patchutils.py: Add tests for _preprocess_source function. 2016-03-26 01:10:48 +01:00
Sebastian Lackner
f21c3bc221 patchutils.py: Simplify access of optional dict values. 2016-03-22 08:22:19 +01:00
Sebastian Lackner
b0cbb8bda2 patchutils.py: Reset the Signed-off-by header after parsing each patch. 2016-03-22 08:17:01 +01:00
Sebastian Lackner
d6f0fd33c7 patchutils.py: Avoid nested function definitions. 2016-03-22 08:00:18 +01:00
Sebastian Lackner
1e5b8f9940 Added patch to implement support for AVIFile interface proxies. 2016-02-07 07:01:34 +01:00
Sebastian Lackner
ff0e7cc638 patchutils.py: Fix a bug in preprocessor when parsing specific strings. 2016-01-06 22:17:06 +01:00
Sebastian Lackner
3f57e8259b patchutils.py: Implement function to read patch from string buffer. 2016-01-06 14:31:44 +01:00
Sebastian Lackner
f2fccc7342 patchutils.py: Fix a bug related to #ifdef patch generator. 2016-01-05 23:30:20 +01:00
Sebastian Lackner
87b990dc41 Rename patch-tools/ to staging/. 2015-11-23 02:43:28 +01:00