jsvn: read lines as available for "users" command
This commit is contained in:
parent
d33436892f
commit
1a16c1f25b
3
jsvn
3
jsvn
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user