jsvn: read lines as available for "users" command
This commit is contained in:
1 parent
d33436892f
commit
1a16c1f25b
1 file changed
+1
-2
@@ -345,8 +345,7 @@ def users(argv, svn, out):
|
|||||||
path = argv[1]
|
path = argv[1]
|
||||||
users = {}
|
users = {}
|
||||||
p = Popen([svn, 'log', '-q', path], stdout=PIPE)
|
p = Popen([svn, 'log', '-q', path], stdout=PIPE)
|
||||||
lines = p.communicate()[0].split('\n')
|
for line in iter(p.stdout.readline, ''):
|
||||||
for line in lines:
|
|
||||||
m = re.match('r\d+\s*\|([^|]+)\|', line)
|
m = re.match('r\d+\s*\|([^|]+)\|', line)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
user = m.group(1).strip()
|
user = m.group(1).strip()
|
||||||
|
|||||||
Reference in new issue
Block a user