[PATCH] hg-ssh: fix dispatch call to use dispatch.request()
Idan Kamara
idankk86 at gmail.com
Sun May 29 04:55:39 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1306662911 -10800
# Node ID 2a0f8e71f1c359b759caf9b2d1deea7905c746f3
# Parent d1a1578c5f7860b17f2f238b2c1e6adb555ffa4f
hg-ssh: fix dispatch call to use dispatch.request()
diff -r d1a1578c5f78 -r 2a0f8e71f1c3 contrib/hg-ssh
--- a/contrib/hg-ssh Fri May 27 15:59:52 2011 +0200
+++ b/contrib/hg-ssh Sun May 29 12:55:11 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