Add revert patch support to the rbt patch command
Review Request #7084 — Created March 19, 2015 and submitted
The
rbt patchcommand is now capable of reverting patches via the
-R/--revertcommand line flag.
Ran unit tests.
Tested
rbt patch -Rwith CVS, Git, Perforce, and SVN.Applied a patch with Perforce that had empty files and was able to
revert it withrbt patch -R.Applied a patch with SVN that had empty files and was able to revert
it withrbt patch -R.Running
rbt patch -Rwhen using a Mercurial repository results in an
error as expected.I am not able to verify that this works with Plastic or ClearCase, but
it should work because they both use the defaultapply_patchmethod.
| Description | From | Last Updated |
|---|---|---|
|
Col: 1 W293 blank line contains whitespace |
|
- Depends On:
- Testing Done:
-
Ran unit tests.
~ Tested
rbt patch -Rwith Git, CVS, and Perforce.~ Tested
rbt patch -Rwith CVS, Git, Perforce, and SVN.Applied a patch with Perforce that had empty files and was able to
revert it with rbt patch -R.+ Applied a patch with SVN that had empty files and was able to revert
+ it with rbt patch -R.+ Running
rbt patch -Rwhen using a Mercurial repository results in anerror as expected. I am not able to verify that this works with Plastic or ClearCase, but
it should work because they both use the default apply_patchmethod. - Branch:
-
masterrelease-0.7.x
- Depends On:
-
- Commit:
c3ab3089320464e731d60a6a7301c52f9e18ed25cb727d6ca0fe324052bec9394b8d3a3ae4c67041
-
Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/commands/patch.py rbtools/clients/tfs.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/svn.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/commands/patch.py rbtools/clients/tfs.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/svn.py -
-
Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/commands/patch.py rbtools/clients/tfs.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/svn.py Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/commands/patch.py rbtools/clients/tfs.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/svn.py
Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/commands/patch.py rbtools/clients/tfs.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/svn.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/commands/patch.py rbtools/clients/tfs.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/svn.py