python-patch
python-patch copied to clipboard
Library to parse and apply unified diffs
``` I noticed that patch.py does not support patches that add or remove files. Following patch against v245 adds support for this. ``` Original issue reported on code.google.com by `[email protected]`...
Exported changesets from version control systems, such as Mercurial and Git often include binary files, so it would be nice if library could create them too.
After creating files and directories introduce --strict mode to cope with previous behavior. Or just skip it?
``` What steps will reproduce the problem? 1.python diff.py -u patch.py.merge-left.r40 patch.py.merge-right.r41 > portfix.diff What is the expected output? What do you see instead? filenames in diff header are not...
``` I'm using patch in an app that needs to accept patch files and apply them safely contained within a certain directory. Namely, it needs to vet each file that...
``` What steps will reproduce the problem? 1. run patch.py two times What is the expected output? What do you see instead? file 4/4: templates/issue.html hunk no.2 doesn't match source...
``` What steps will reproduce the problem? 1. Add new or change existing binary file in svn repository. 2. Create svn diff. 3. Try to parse/apply patch with patch.py What...
``` Revise documentation on unified diff format and include diagrams for at least classic, svn and hg diff. ``` Original issue reported on code.google.com by `[email protected]` on 25 Aug 2009...
``` What steps will reproduce the problem? 1.Produce patches for files named with spaces using "diff", "hg" and "svn" 2.Try patch.py on these ``` Original issue reported on code.google.com by...