jsvn: allow double-underscore comands to bypass jsvn processing

This commit is contained in:
Josh Holtrop 2012-02-22 09:54:19 -05:00
parent bd7afbf7fc
commit db9c29f525

4
jsvn
View File

@ -608,6 +608,10 @@ def main(argv):
r = handlers[argv[0]](argv, realsvn, out) r = handlers[argv[0]](argv, realsvn, out)
if r == RET_OK or r == RET_ERR: if r == RET_OK or r == RET_ERR:
do_normal_exec = False do_normal_exec = False
elif argv[0].startswith('__'):
# allow double-underscore commands to execute the native
# subversion command (e.g. "__st")
argv[0] = argv[0][2:]
if do_normal_exec: if do_normal_exec:
Popen([realsvn] + argv, stdout=out).wait() Popen([realsvn] + argv, stdout=out).wait()