##// END OF EJS Templates
disallow commands on non local repository
Benoit Boissinot -
r3278:23682d3e default
parent child Browse files
Show More
@@ -3283,6 +3283,8 b' def dispatch(args):'
3283
3283
3284 path = u.expandpath(options["repository"]) or ""
3284 path = u.expandpath(options["repository"]) or ""
3285 repo = path and hg.repository(u, path=path) or None
3285 repo = path and hg.repository(u, path=path) or None
3286 if repo and not repo.local():
3287 raise util.Abort(_("repository '%s' is not local") % path)
3286
3288
3287 if options['help']:
3289 if options['help']:
3288 return help_(u, cmd, options['version'])
3290 return help_(u, cmd, options['version'])
General Comments 0
You need to be logged in to leave comments. Login now