mercurial/localrepo.py
changeset 1588 a679a364436a
parent 1586 5c5aaaa9ab6f
child 1590 bae3f3f993d6
child 1679 675ca845c2f8
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)