Adjust contrib/hg-ssh for moved dispatch() function.
--- a/contrib/hg-ssh Fri Aug 17 00:35:16 2007 -0500
+++ b/contrib/hg-ssh Fri Aug 17 19:11:16 2007 +0200
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2005, 2006 by Intevation GmbH <intevation@intevation.de>
+# Copyright 2005-2007 by Intevation GmbH <intevation@intevation.de>
# Author(s):
# Thomas Arendsen Hein <thomas@intevation.de>
#
@@ -25,7 +25,7 @@
command="cd repos && hg-ssh user/thomas/* projects/{mercurial,foo}"
"""
-from mercurial import commands
+from mercurial import dispatch
import sys, os
@@ -38,7 +38,7 @@
path = orig_cmd[6:-14]
repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path)))
if repo in allowed_paths:
- commands.dispatch(['-R', repo, 'serve', '--stdio'])
+ dispatch.dispatch(['-R', repo, 'serve', '--stdio'])
else:
sys.stderr.write("Illegal repository %r\n" % repo)
sys.exit(-1)