# HG changeset patch # User Thomas Arendsen Hein # Date 2007-08-17 17:11:16 # Node ID 831ebc408ffb2f4df1a10c3d693f90eeb9401a72 # Parent c1dbc9ae8f2ba6d15cf42146083ccd523cd04346 Adjust contrib/hg-ssh for moved dispatch() function. diff --git a/contrib/hg-ssh b/contrib/hg-ssh --- a/contrib/hg-ssh +++ b/contrib/hg-ssh @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2005, 2006 by Intevation GmbH +# Copyright 2005-2007 by Intevation GmbH # Author(s): # Thomas Arendsen Hein # @@ -25,7 +25,7 @@ You can use pattern matching of your nor 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 @@ 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: - commands.dispatch(['-R', repo, 'serve', '--stdio']) + dispatch.dispatch(['-R', repo, 'serve', '--stdio']) else: sys.stderr.write("Illegal repository %r\n" % repo) sys.exit(-1)