Line 0
Link Here
|
|
|
1 |
Python library to parse and apply unified diffs. |
2 |
|
3 |
Features: |
4 |
|
5 |
- Automatic correction of |
6 |
* Linefeeds according to patched file |
7 |
* Diffs broken by stripping trailing whitespace |
8 |
* a/ and b/ prefixes |
9 |
- Single file, which is a command line tool and a library |
10 |
- No dependencies outside Python stdlib |
11 |
- Patch format detection (SVN, HG, GIT) |
12 |
- Nice diffstat histogram |
13 |
|
14 |
Things that don't work out of the box: |
15 |
|
16 |
- File renaming, creation and removal |
17 |
- Directory tree operations |
18 |
- Version control specific properties |
19 |
- Non-unified diff formats |
20 |
|
21 |
WWW: https://github.com/techtonik/python-patch |