# HG changeset patch # User Benoit Boissinot # Date 1160155303 -7200 # Node ID 23682d3e4111562885708532838a7986f10b3569 # Parent 105253b302390fcc166f259a75defcd5b92255a2 disallow commands on non local repository diff -r 105253b30239 -r 23682d3e4111 mercurial/commands.py --- a/mercurial/commands.py Fri Oct 06 18:38:32 2006 +0200 +++ b/mercurial/commands.py Fri Oct 06 19:21:43 2006 +0200 @@ -3283,6 +3283,8 @@ 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'])