Fix rbt patch for some SCMs.
Review Request #7091 — Created March 19, 2015 and submitted
Previously,
rbt patchreally only worked with Git, Perforce, and
Mercurial. When runningrbt patchwith 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 patchwith these SCMs no longer causesrbtto crash.
Ran unit tests.
Before applying this patch, using
rbt patchin a CVS repository
would cause it to crash. After applying this patch, it no longer
crashes and the patch is applied successfully.
-
Tool: Pyflakes Processed Files: rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/svn.py rbtools/clients/perforce.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/svn.py rbtools/clients/perforce.py
- Change Summary:
-
General cleanups.
- Commit:
-
cabde14c8f7463034147fd7c19314f2efa9d1b63e26dc3a42338e9d0306676d11f933e531df26508
-
Tool: Pyflakes Processed Files: rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/svn.py rbtools/clients/perforce.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/svn.py rbtools/clients/perforce.py
Tool: Pyflakes Processed Files: rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/svn.py rbtools/clients/perforce.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/svn.py rbtools/clients/perforce.py