# HG changeset patch # User Benoit Boissinot # Date 2006-10-06 17:21:43 # Node ID 23682d3e4111562885708532838a7986f10b3569 # Parent 105253b302390fcc166f259a75defcd5b92255a2 disallow commands on non local repository diff --git a/mercurial/commands.py b/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'])