equal
deleted
inserted
replaced
713 repo.ui.setconfig("bundle", "mainreporoot", repo.root) |
713 repo.ui.setconfig("bundle", "mainreporoot", repo.root) |
714 except error.RequirementError: |
714 except error.RequirementError: |
715 raise |
715 raise |
716 except error.RepoError: |
716 except error.RepoError: |
717 if cmd not in commands.optionalrepo.split(): |
717 if cmd not in commands.optionalrepo.split(): |
718 if args and not path: # try to infer -R from command args |
718 if (cmd in commands.inferrepo.split() and |
|
719 args and not path): # try to infer -R from command args |
719 repos = map(cmdutil.findrepo, args) |
720 repos = map(cmdutil.findrepo, args) |
720 guess = repos[0] |
721 guess = repos[0] |
721 if guess and repos.count(guess) == len(repos): |
722 if guess and repos.count(guess) == len(repos): |
722 req.args = ['--repository', guess] + fullargs |
723 req.args = ['--repository', guess] + fullargs |
723 return _dispatch(req) |
724 return _dispatch(req) |