equal
deleted
inserted
replaced
3281 raise util.Abort('%s: %s' % |
3281 raise util.Abort('%s: %s' % |
3282 (options['cwd'], inst.strerror)) |
3282 (options['cwd'], inst.strerror)) |
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']) |
3289 elif options['version']: |
3291 elif options['version']: |
3290 return show_version(u) |
3292 return show_version(u) |