equal
deleted
inserted
replaced
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) |