techtonik / python-patch

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

accept urls - useful for applying patches directly from rietveld #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What do you want to do?
I want to be able to enter URL of the patch or id of the issue on Rietveld to   
apply patch from it in current directory.

How to test if it works as expected? Please describe step by step.
python patch.py http://codereview.appspot.com/download/issue577041_2001.diff

Original issue reported on code.google.com by techtonik@gmail.com on 20 Mar 2010 at 5:08

GoogleCodeExporter commented 9 years ago
Note that GNU patch accomplishes this with output redirection (and delegating to
another application for URL handling).

curl http://codereview.appspot.com/download/issue577041_2001.diff | patch

python-patch may support this also.

Original comment by jaraco%jaraco.com@gtempaccount.com on 6 Apr 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Thanks for suggestion, but for now I better reserve stdout input for 
interactions with user.

Original comment by techtonik@gmail.com on 14 Dec 2010 at 12:04

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r115.

Original comment by techtonik@gmail.com on 14 Dec 2010 at 1:48