mercurial/commands.py
changeset 3277 23682d3e4111
parent 3267 bb057b6ce3cf
child 3283 d89e98840b08
--- 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'])