Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 4182:ba51a8225a60
Merge with crew-stable
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Sat, 10 Mar 2007 17:45:32 -0800 |
parents | ac9e891f2c0f 7b5723c95a82 |
children | b5d1eaade333 |
comparison
equal
deleted
inserted
replaced
4181:ac9e891f2c0f | 4182:ba51a8225a60 |
---|---|
29 if p == oldp: | 29 if p == oldp: |
30 raise repo.RepoError(_("There is no Mercurial repository" | 30 raise repo.RepoError(_("There is no Mercurial repository" |
31 " here (.hg not found)")) | 31 " here (.hg not found)")) |
32 path = p | 32 path = p |
33 | 33 |
34 self.path = os.path.join(path, ".hg") | |
35 self.root = os.path.realpath(path) | 34 self.root = os.path.realpath(path) |
35 self.path = os.path.join(self.root, ".hg") | |
36 self.origroot = path | 36 self.origroot = path |
37 self.opener = util.opener(self.path) | 37 self.opener = util.opener(self.path) |
38 self.wopener = util.opener(self.root) | 38 self.wopener = util.opener(self.root) |
39 | 39 |
40 if not os.path.isdir(self.path): | 40 if not os.path.isdir(self.path): |