Add revert patch support to the rbt patch command
Review Request #7084 — Created March 19, 2015 and submitted — Latest diff uploaded
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.