contrib/hg-ssh
branchstable
changeset 16606 19379226dc67
parent 15897 cc021114fc98
child 16607 feb1fd2d13a9
--- a/contrib/hg-ssh	Mon May 07 00:48:51 2012 +0200
+++ b/contrib/hg-ssh	Mon May 07 00:49:01 2012 +0200
@@ -40,7 +40,7 @@
 try:
     cmdargv = shlex.split(orig_cmd)
 except ValueError, e:
-    sys.stderr.write("Illegal command %r: %s\n" % (orig_cmd, e))
+    sys.stderr.write('Illegal command "%s": %s\n' % (orig_cmd, e))
     sys.exit(-1)
 
 if cmdargv[:2] == ['hg', '-R'] and cmdargv[3:] == ['serve', '--stdio']:
@@ -49,9 +49,9 @@
     if repo in allowed_paths:
         dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
     else:
-        sys.stderr.write("Illegal repository %r\n" % repo)
+        sys.stderr.write('Illegal repository "%s"\n' % repo)
         sys.exit(-1)
 else:
-    sys.stderr.write("Illegal command %r\n" % orig_cmd)
+    sys.stderr.write('Illegal command "%s"\n' % orig_cmd)
     sys.exit(-1)