diff mercurial/localrepo.py @ 1588:a679a364436a

Better error message (without /.hg appended) when repository is not found. This makes the error for missing default or default-push more readable.
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 15 Dec 2005 16:19:23 +0100
parents 5c5aaaa9ab6f
children bae3f3f993d6 675ca845c2f8
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Dec 15 15:40:14 2005 +0100
+++ b/mercurial/localrepo.py	Thu Dec 15 16:19:23 2005 +0100
@@ -24,7 +24,7 @@
         self.path = os.path.join(path, ".hg")
 
         if not create and not os.path.isdir(self.path):
-            raise repo.RepoError(_("repository %s not found") % self.path)
+            raise repo.RepoError(_("repository %s not found") % path)
 
         self.root = os.path.abspath(path)
         self.ui = ui