Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: patchconv/README.md

Issue 29524903: Noissue - Add helper script to import changes from Rietveld reviews (Closed)
Patch Set: Created Aug. 23, 2017, 2:50 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | patchconv/rapply.sh » ('j') | patchconv/rapply.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patchconv/README.md
===================================================================
--- a/patchconv/README.md
+++ b/patchconv/README.md
@@ -21,11 +21,27 @@
## Usage
The script in the package will be available immediately after the installation.
Its interface is simple: it reads from stdin and writes to stdout.
$ patchconv <patch-from-rietveld.diff >git-patch.diff
+For additional convenience you can use the provided `rapply.sh` script that
+downloads, converts and applies patches from Rietveld reviews to your local
+working copy. In order to use it, open a review, copy the URL of a `[raw]`
+download link in the top right corner of a patch set overview and then paste it
+into the console:
+
+ $ rapply.sh https://codereview.adblockplus.org/download/issue3322_4433.diff
+
+or, if you've already downloaded the diff to a local file:
+
+ $ rapply.sh issue3322_4433.diff
+
+In both cases you need to be in the directory containing the repository to
+which you are applying the diff and `patchconv` script needs to be in your
+path.
+
## Testing
The tests can be run via [Tox](http://tox.readthedocs.org/)
« no previous file with comments | « no previous file | patchconv/rapply.sh » ('j') | patchconv/rapply.sh » ('J')

Powered by Google App Engine
This is Rietveld