Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 3079:4c9fcb5e3b82
If local repository is missing, make error message clearer.
Faheem Mitha suggested finding a better error message.
The nice error message is taken from cogito.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 11 Sep 2006 10:08:30 +0200 |
parents | bc3fe3b5b785 |
children | 81da3c45aabd |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Sep 10 19:15:08 2006 -0300 +++ b/mercurial/localrepo.py Mon Sep 11 10:08:30 2006 +0200 @@ -27,7 +27,8 @@ oldp = p p = os.path.dirname(p) if p == oldp: - raise repo.RepoError(_("no repo found")) + raise repo.RepoError(_("There is no Mercurial repository" + " here (.hg not found)")) path = p self.path = os.path.join(path, ".hg")