equal
deleted
inserted
replaced
574 repo = hg.repository(ui, path=path) |
574 repo = hg.repository(ui, path=path) |
575 ui = repo.ui |
575 ui = repo.ui |
576 if not repo.local(): |
576 if not repo.local(): |
577 raise util.Abort(_("repository '%s' is not local") % path) |
577 raise util.Abort(_("repository '%s' is not local") % path) |
578 ui.setconfig("bundle", "mainreporoot", repo.root) |
578 ui.setconfig("bundle", "mainreporoot", repo.root) |
|
579 except error.RequirementError: |
|
580 raise |
579 except error.RepoError: |
581 except error.RepoError: |
580 if cmd not in commands.optionalrepo.split(): |
582 if cmd not in commands.optionalrepo.split(): |
581 if args and not path: # try to infer -R from command args |
583 if args and not path: # try to infer -R from command args |
582 repos = map(cmdutil.findrepo, args) |
584 repos = map(cmdutil.findrepo, args) |
583 guess = repos[0] |
585 guess = repos[0] |