diff -r a1c31c64bcd3 -r f85c9b0fdb32 mercurial/dispatch.py --- 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: