techtonik / python-patch

Library to parse and apply unified diffs
https://pypi.python.org/pypi/patch
106 stars 63 forks source link

patch should create files (and folders) if the don't already exist #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. attempt to run a patch where some of the hunks are non-existing files on the 
target

What is the expected output? What do you see instead?
patch should create these files - as does the linux patch utility, possibly 
creating directories as well

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by dlr...@gmail.com on 12 Aug 2009 at 4:43

GoogleCodeExporter commented 9 years ago

Original comment by techtonik@gmail.com on 24 Aug 2009 at 9:52

GoogleCodeExporter commented 9 years ago
Does unix utility create folders?

Original comment by techtonik@gmail.com on 29 Aug 2010 at 9:15

GoogleCodeExporter commented 9 years ago

Original comment by techtonik@gmail.com on 27 Sep 2010 at 8:38

GoogleCodeExporter commented 9 years ago

Original comment by techtonik@gmail.com on 29 Nov 2011 at 4:37

techtonik commented 8 years ago

Duplicate of #28 (which has patch attached).