# HG changeset patch # User Idan Kamara # Date 2011-05-29 10:43:50 # Node ID f6a433671c06ea7986e0cf2c54686d1af7f22ba1 # Parent f5b0834cf68576c08a70ff919e5c93a1629609a1 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 --git a/contrib/hg-ssh b/contrib/hg-ssh --- a/contrib/hg-ssh +++ b/contrib/hg-ssh @@ -42,7 +42,7 @@ if orig_cmd.startswith('hg -R ') and ori 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)