Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
1587:851bc33ff545 | 1588:a679a364436a |
---|---|
22 if p == oldp: raise repo.RepoError(_("no repo found")) | 22 if p == oldp: raise repo.RepoError(_("no repo found")) |
23 path = p | 23 path = p |
24 self.path = os.path.join(path, ".hg") | 24 self.path = os.path.join(path, ".hg") |
25 | 25 |
26 if not create and not os.path.isdir(self.path): | 26 if not create and not os.path.isdir(self.path): |
27 raise repo.RepoError(_("repository %s not found") % self.path) | 27 raise repo.RepoError(_("repository %s not found") % path) |
28 | 28 |
29 self.root = os.path.abspath(path) | 29 self.root = os.path.abspath(path) |
30 self.ui = ui | 30 self.ui = ui |
31 self.opener = util.opener(self.path) | 31 self.opener = util.opener(self.path) |
32 self.wopener = util.opener(self.root) | 32 self.wopener = util.opener(self.root) |