allow ctrl+c to interrupt watch-lock without printing a python stack dump
This commit is contained in:
parent
55eee0d6ac
commit
bbe6d71a0a
4
jsvn
4
jsvn
@ -568,6 +568,7 @@ def watch_lock(argv, svn, out):
|
|||||||
break
|
break
|
||||||
|
|
||||||
last_lock_owner = ''
|
last_lock_owner = ''
|
||||||
|
try:
|
||||||
while True:
|
while True:
|
||||||
lock_owner = ''
|
lock_owner = ''
|
||||||
p = Popen([svn, 'info', path], stdout=PIPE)
|
p = Popen([svn, 'info', path], stdout=PIPE)
|
||||||
@ -583,7 +584,6 @@ def watch_lock(argv, svn, out):
|
|||||||
out.write('Locked by: %s\n' % lock_owner)
|
out.write('Locked by: %s\n' % lock_owner)
|
||||||
last_lock_owner = lock_owner
|
last_lock_owner = lock_owner
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
|
|
||||||
out.write('''
|
out.write('''
|
||||||
_ _ _ _ _ _
|
_ _ _ _ _ _
|
||||||
| | | |_ __ | | ___ ___| | _____ __| | |
|
| | | |_ __ | | ___ ___| | _____ __| | |
|
||||||
@ -592,6 +592,8 @@ def watch_lock(argv, svn, out):
|
|||||||
\___/|_| |_|_|\___/ \___|_|\_\___|\__,_(_)
|
\___/|_| |_|_|\___/ \___|_|\_\___|\__,_(_)
|
||||||
|
|
||||||
''')
|
''')
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
return RET_OK
|
return RET_OK
|
||||||
|
|
||||||
def users(argv, svn, out):
|
def users(argv, svn, out):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user