mercurial/localrepo.py
changeset 3076 4c9fcb5e3b82
parent 3069 bc3fe3b5b785
child 3127 81da3c45aabd
equal deleted inserted replaced
3075:baa3873eb387 3076:4c9fcb5e3b82
    25             p = os.getcwd()
    25             p = os.getcwd()
    26             while not os.path.isdir(os.path.join(p, ".hg")):
    26             while not os.path.isdir(os.path.join(p, ".hg")):
    27                 oldp = p
    27                 oldp = p
    28                 p = os.path.dirname(p)
    28                 p = os.path.dirname(p)
    29                 if p == oldp:
    29                 if p == oldp:
    30                     raise repo.RepoError(_("no repo found"))
    30                     raise repo.RepoError(_("There is no Mercurial repository"
       
    31                                            " here (.hg not found)"))
    31             path = p
    32             path = p
    32         self.path = os.path.join(path, ".hg")
    33         self.path = os.path.join(path, ".hg")
    33 
    34 
    34         if not os.path.isdir(self.path):
    35         if not os.path.isdir(self.path):
    35             if create:
    36             if create: