jsvn: ignore errors getting branch/tag list
This commit is contained in:
parent
aa4e356058
commit
04482e4adc
4
jsvn
4
jsvn
@ -238,7 +238,7 @@ def getSVNBranchList(svn):
|
||||
colist = []
|
||||
root = getSVNRoot(svn)
|
||||
lines = Popen([svn, 'ls', root + '/branches'],
|
||||
stdout=PIPE).communicate()[0].split('\n')
|
||||
stdout=PIPE, stderr=PIPE).communicate()[0].split('\n')
|
||||
for line in lines:
|
||||
if re.match(r'^\s*$', line) is None:
|
||||
colist.append(re.sub(r'/$', '', line))
|
||||
@ -248,7 +248,7 @@ def getSVNTagList(svn):
|
||||
colist = []
|
||||
root = getSVNRoot(svn)
|
||||
lines = Popen([svn, 'ls', root + '/tags'],
|
||||
stdout=PIPE).communicate()[0].split('\n')
|
||||
stdout=PIPE, stderr=PIPE).communicate()[0].split('\n')
|
||||
for line in lines:
|
||||
if re.match(r'^\s*$', line) is None:
|
||||
colist.append(re.sub(r'/$', '', line))
|
||||
|
Loading…
x
Reference in New Issue
Block a user