mercurial/localrepo.py
changeset 1588 a679a364436a
parent 1586 5c5aaaa9ab6f
child 1590 bae3f3f993d6
child 1679 675ca845c2f8
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -24,7 +24,7 @@ class localrepository(object):
         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