jsvn: use internal getSVNURL() instead of a call to grep

This commit is contained in:
Josh Holtrop 2012-03-01 16:05:40 -05:00
parent e3a8e72d58
commit 03fd50eb93

4
jsvn
View File

@ -447,8 +447,8 @@ def switch(argv, svn, out):
switched = True
break
if switched:
Popen(svn + ' info | grep --color=none "^URL:"',
shell=True, stdout=out).wait()
url = getSVNURL(svn)
out.write('URL: %s\n' % url)
return RET_OK
pout = Popen([svn] + argv, stdout=PIPE).stdout
filter_update(pout, out)