Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 13967:f85c9b0fdb32
dispatch: improve repository not found message
This should help clarify what the problem is in various problematic
cases like ssh.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 20 Apr 2011 14:28:40 -0500 |
parents | 14d0553bd48b |
children | 97ed99d1f419 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Wed Apr 20 00:01:50 2011 -0400 +++ b/mercurial/dispatch.py Wed Apr 20 14:28:40 2011 -0500 @@ -586,8 +586,8 @@ if guess and repos.count(guess) == len(repos): return _dispatch(ui, ['--repository', guess] + fullargs) if not path: - raise error.RepoError(_("There is no Mercurial repository" - " here (.hg not found)")) + raise error.RepoError(_("no repository found in %r" + " (.hg not found)") % os.getcwd()) raise args.insert(0, repo) elif rpath: