prevent exception when svn info output not as expected
This commit is contained in:
parent
eff141187b
commit
1194bc004e
1 changed files with 6 additions and 2 deletions
|
@ -32,10 +32,14 @@ class Subversion(BaseProject):
|
||||||
return self._find_project_base(self.path)
|
return self._find_project_base(self.path)
|
||||||
|
|
||||||
def name(self):
|
def name(self):
|
||||||
return u(self.info['Repository Root'].split('/')[-1])
|
if 'Repository Root' not in self.info:
|
||||||
|
return None
|
||||||
|
return u(self.info['Repository Root'].split('/')[-1].split('\\')[-1])
|
||||||
|
|
||||||
def branch(self):
|
def branch(self):
|
||||||
return u(self.info['URL'].split('/')[-1])
|
if 'URL' not in self.info:
|
||||||
|
return None
|
||||||
|
return u(self.info['URL'].split('/')[-1].split('\\')[-1])
|
||||||
|
|
||||||
def _find_binary(self):
|
def _find_binary(self):
|
||||||
if self.binary_location:
|
if self.binary_location:
|
||||||
|
|
Loading…
Reference in a new issue