Show More
@@ -41,7 +41,7 b' try:' | |||||
41 | cmdargv = shlex.split(orig_cmd) |
|
41 | cmdargv = shlex.split(orig_cmd) | |
42 | except ValueError, e: |
|
42 | except ValueError, e: | |
43 | sys.stderr.write('Illegal command "%s": %s\n' % (orig_cmd, e)) |
|
43 | sys.stderr.write('Illegal command "%s": %s\n' % (orig_cmd, e)) | |
44 |
sys.exit( |
|
44 | sys.exit(255) | |
45 |
|
45 | |||
46 | if cmdargv[:2] == ['hg', '-R'] and cmdargv[3:] == ['serve', '--stdio']: |
|
46 | if cmdargv[:2] == ['hg', '-R'] and cmdargv[3:] == ['serve', '--stdio']: | |
47 | path = cmdargv[2] |
|
47 | path = cmdargv[2] | |
@@ -50,8 +50,8 b" if cmdargv[:2] == ['hg', '-R'] and cmdar" | |||||
50 | dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio'])) |
|
50 | dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio'])) | |
51 | else: |
|
51 | else: | |
52 | sys.stderr.write('Illegal repository "%s"\n' % repo) |
|
52 | sys.stderr.write('Illegal repository "%s"\n' % repo) | |
53 |
sys.exit( |
|
53 | sys.exit(255) | |
54 | else: |
|
54 | else: | |
55 | sys.stderr.write('Illegal command "%s"\n' % orig_cmd) |
|
55 | sys.stderr.write('Illegal command "%s"\n' % orig_cmd) | |
56 |
sys.exit( |
|
56 | sys.exit(255) | |
57 |
|
57 |
General Comments 0
You need to be logged in to leave comments.
Login now