[PATCH] hg-ssh: fix dispatch call to use dispatch.request()
Idan Kamara
idankk86 at gmail.com
Mon May 30 04:32:38 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1306665830 -10800
# Node ID 7f40606b4807dfa52dec936d793ef8d561da6391
# Parent 243acc7111b56701019433a69748983ad6879b69
hg-ssh: fix dispatch call to use dispatch.request()
08bfec2ef031 changed dispatch.dispatch() to accept a
request object instead of a list of arguments
diff -r 243acc7111b5 -r 7f40606b4807 contrib/hg-ssh
--- a/contrib/hg-ssh Sat May 28 11:44:27 2011 +0200
+++ b/contrib/hg-ssh Sun May 29 13:43:50 2011 +0300
@@ -42,7 +42,7 @@
path = orig_cmd[6:-14]
repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path)))
if repo in allowed_paths:
- dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
+ dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio']))
else:
sys.stderr.write("Illegal repository %r\n" % repo)
sys.exit(-1)
More information about the Mercurial-devel
mailing list