Fix handling of empty files in SVN in some cases.
Review Request #7002 — Created March 3, 2015 and submitted
We ensure that the
baseandtipvariables are defined before they
are referenced. Static analysis (via PyCharm) determines that the
variables are now always assigned before referencing.
Ran unit tests.
Before applying this patch, running
rbt diffin an SVN repo against
two changesets that add an empty file and delete an empty file would
cause rbt to crash with the message:
CRITICAL: local variable 'base' referenced before assignment.
After applying this patch, this problem no longer persists. The output
ofrbt diffhas the correct revision numbers in this case.
Tool: Pyflakes Processed Files: rbtools/clients/svn.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/svn.py