disallow commands on non local repository
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 06 Oct 2006 19:21:43 +0200
changeset 3277 23682d3e4111
parent 3276 105253b30239
child 3278 4b2d3c8a6195
disallow commands on non local repository
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3283,6 +3283,8 @@ def dispatch(args):
 
             path = u.expandpath(options["repository"]) or ""
             repo = path and hg.repository(u, path=path) or None
+            if repo and not repo.local():
+                raise util.Abort(_("repository '%s' is not local") % path)
 
             if options['help']:
                 return help_(u, cmd, options['version'])