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