equal
deleted
inserted
replaced
649 guess = repos[0] |
649 guess = repos[0] |
650 if guess and repos.count(guess) == len(repos): |
650 if guess and repos.count(guess) == len(repos): |
651 req.args = ['--repository', guess] + fullargs |
651 req.args = ['--repository', guess] + fullargs |
652 return _dispatch(req) |
652 return _dispatch(req) |
653 if not path: |
653 if not path: |
654 raise error.RepoError(_("no repository found in %r" |
654 raise error.RepoError(_("no repository found in '%s'" |
655 " (.hg not found)") % os.getcwd()) |
655 " (.hg not found)") % os.getcwd()) |
656 raise |
656 raise |
657 if repo: |
657 if repo: |
658 ui = repo.ui |
658 ui = repo.ui |
659 args.insert(0, repo) |
659 args.insert(0, repo) |