diff mercurial/localrepo.py @ 3076: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
+++ b/mercurial/localrepo.py
@@ -27,7 +27,8 @@ class localrepository(repo.repository):
                 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")