Fix error running 'rbt patch' with Mercurial repositories.
Review Request #5894 — Created May 28, 2014 and submitted
Running
rbt patch
with a Mercurial repository failed with the error
"patch: unrecognized option '--config'" because _execute() in
rbtools/clients/mercurial.py appends a --config option for loading hgrc files.
This option is used for hg commands, but is not a valid option forpatch
. To
fix this, we runpatch
by calling execute().
- Ran unit tests.
- Ran
rbt patch
with a Mercurial repository, and saw that the patch was
applied successfully.