Better error message (without /.hg appended) when repository is not found.
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 15 Dec 2005 16:19:23 +0100
changeset 1588 a679a364436a
parent 1587 851bc33ff545
child 1589 fce5292866c6
child 1593 6bb3463b124b
child 1679 675ca845c2f8
Better error message (without /.hg appended) when repository is not found. This makes the error for missing default or default-push more readable.
mercurial/localrepo.py
tests/test-clone-failure.out
--- 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
--- a/tests/test-clone-failure.out	Thu Dec 15 15:40:14 2005 +0100
+++ b/tests/test-clone-failure.out	Thu Dec 15 16:19:23 2005 +0100
@@ -1,12 +1,12 @@
-abort: repository a/.hg not found!
+abort: repository a not found!
 255
 requesting all changes
 abort: error: Connection refused
 255
-abort: repository a/.hg not found!
+abort: repository a not found!
 255
 abort: destination '../a' already exists
 1
-abort: repository a/.hg not found!
+abort: repository a not found!
 255
 abort: destination 'q' already exists