Fix local variable 'base_url' referenced before assignment (#4914)

Fixes #4908
This commit is contained in:
Giftlin Rajaiah 2017-12-17 20:12:39 +05:30 committed by Pradyun Gedam
parent b0a762a8f6
commit 7bb73f60ad
2 changed files with 3 additions and 2 deletions

1
news/4908.bugfix Normal file
View File

@ -0,0 +1 @@
Replaced typo mistake in subversion support.

View File

@ -130,8 +130,8 @@ class Subversion(VersionControl):
dirurl, localrev = self._get_svn_url_rev(base)
if base == location:
base_url = dirurl + '/' # save the root url
elif not dirurl or not dirurl.startswith(base_url):
base = dirurl + '/' # save the root url
elif not dirurl or not dirurl.startswith(base):
dirs[:] = []
continue # not part of the same svn tree, skip it
revision = max(revision, localrev)