##// END OF EJS Templates
hg-ssh: exit with 255 instead of -1 on error...
Mads Kiilerich -
r16607:feb1fd2d stable
parent child Browse files
Show More
@@ -41,7 +41,7 b' try:'
41 41 cmdargv = shlex.split(orig_cmd)
42 42 except ValueError, e:
43 43 sys.stderr.write('Illegal command "%s": %s\n' % (orig_cmd, e))
44 sys.exit(-1)
44 sys.exit(255)
45 45
46 46 if cmdargv[:2] == ['hg', '-R'] and cmdargv[3:] == ['serve', '--stdio']:
47 47 path = cmdargv[2]
@@ -50,8 +50,8 b" if cmdargv[:2] == ['hg', '-R'] and cmdar"
50 50 dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
51 51 else:
52 52 sys.stderr.write('Illegal repository "%s"\n' % repo)
53 sys.exit(-1)
53 sys.exit(255)
54 54 else:
55 55 sys.stderr.write('Illegal command "%s"\n' % orig_cmd)
56 sys.exit(-1)
56 sys.exit(255)
57 57
General Comments 0
You need to be logged in to leave comments. Login now