ignore errors finding working copy root if you are not in a working copy
This commit is contained in:
parent
be4cbdb8cb
commit
761d26a5c6
3
jsvn
3
jsvn
@ -188,7 +188,8 @@ def get_svn_root_url(svn):
|
|||||||
return ''
|
return ''
|
||||||
|
|
||||||
def get_svn_wc_root(svn):
|
def get_svn_wc_root(svn):
|
||||||
for line in Popen([svn, 'info'], stdout=PIPE).communicate()[0].split('\n'):
|
proc = Popen([svn, 'info'], stdout=PIPE, stderr=PIPE)
|
||||||
|
for line in proc.communicate()[0].split('\n'):
|
||||||
m = re.match(r'Working Copy Root Path: (.*)$', line)
|
m = re.match(r'Working Copy Root Path: (.*)$', line)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
return m.group(1)
|
return m.group(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user