Fix rbt patch for some SCMs.
Review Request #7091 — Created March 19, 2015 and submitted — Latest diff uploaded
Previously,
rbt patch
really only worked with Git, Perforce, and
Mercurial. When runningrbt patch
with another SCM (say, CVS) it
would crash. This is because not all SCMs knew how to check for empty
files support. Now, all SCMs default to no empty file support and
runnignrbt patch
with these SCMs no longer causesrbt
to crash.
Ran unit tests.
Before applying this patch, using
rbt patch
in a CVS repository
would cause it to crash. After applying this patch, it no longer
crashes and the patch is applied successfully.