Closed GoogleCodeExporter closed 8 years ago
Thanks for report. Can you attach your.patch here for inclusion in test-suite.
Do you
remember which tool was used to produce it?
Original comment by techtonik@gmail.com
on 28 May 2009 at 5:13
Fixed in r46.
Original comment by techtonik@gmail.com
on 24 Aug 2009 at 9:37
There are more problems with whitespaces in filenames, because various patching
engines
tend to stick additional information on the same line with filename. Different
patching
engines (hg, svn) have different unified patch formats for this info and take
filename
from other fields to be recognized correctly.
Please note also that there were no API (not yet), because python-patch is
still an
utility - not a library. API will hopefully appear with the next release, but
won't be
documented until it is intuitive, convenient and stable.
apply_file() and read_file() functions you've used are gone already. So, the
correct
invocation would be something like:
import patch
p = patch.fromfile("my.patch")
p.apply()
Original comment by techtonik@gmail.com
on 24 Aug 2009 at 9:50
I have tried patch.py from trunk and updated my code, all my patches seem to be
working correctly now.
Original comment by ja...@twistedfish.com
on 25 Aug 2009 at 8:28
Good to know. Thanks. New version is available from downloads section - I've
made
changes to API - moved module functions to Patch class. You may want to look at
those.
Original comment by techtonik@gmail.com
on 25 Aug 2009 at 1:31
This issue was updated by revision r62.
need to strip filename also for target filename
as it is used when source filename is not found
Original comment by techtonik@gmail.com
on 26 Dec 2009 at 9:20
Original issue reported on code.google.com by
ja...@twistedfish.com
on 14 May 2009 at 4:31