changeset 5191:831ebc408ffb

Adjust contrib/hg-ssh for moved dispatch() function.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 17 Aug 2007 19:11:16 +0200
parents c1dbc9ae8f2b
children 60acf1432ee0
files contrib/hg-ssh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)