mercurial/dispatch.py
changeset 14918 ebdfdba0faaf
parent 14888 946f4381c1cb
parent 14914 41c3a71c318d
child 14950 144e97421f6b
equal deleted inserted replaced
14913:44382887d012 14918:ebdfdba0faaf
   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)