Show More
@@ -37,14 +37,14 b' class localrepository(repo.repository):' | |||||
37 |
|
37 | |||
38 | def __init__(self, baseui, path=None, create=False): |
|
38 | def __init__(self, baseui, path=None, create=False): | |
39 | repo.repository.__init__(self) |
|
39 | repo.repository.__init__(self) | |
40 | self.root = os.path.realpath(util.expandpath(path)) |
|
40 | self.wopener = scmutil.opener(path, expand=True) | |
|
41 | self.wvfs = self.wopener | |||
|
42 | self.root = self.wvfs.base | |||
41 | self.path = os.path.join(self.root, ".hg") |
|
43 | self.path = os.path.join(self.root, ".hg") | |
42 | self.origroot = path |
|
44 | self.origroot = path | |
43 | self.auditor = scmutil.pathauditor(self.root, self._checknested) |
|
45 | self.auditor = scmutil.pathauditor(self.root, self._checknested) | |
44 | self.opener = scmutil.opener(self.path) |
|
46 | self.opener = scmutil.opener(self.path) | |
45 | self.vfs = self.opener |
|
47 | self.vfs = self.opener | |
46 | self.wopener = scmutil.opener(self.root) |
|
|||
47 | self.wvfs = self.wopener |
|
|||
48 | self.baseui = baseui |
|
48 | self.baseui = baseui | |
49 | self.ui = baseui.copy() |
|
49 | self.ui = baseui.copy() | |
50 | # A list of callback to shape the phase if no data were found. |
|
50 | # A list of callback to shape the phase if no data were found. |
@@ -196,7 +196,9 b' class opener(abstractopener):' | |||||
196 | This class is used to hide the details of COW semantics and |
|
196 | This class is used to hide the details of COW semantics and | |
197 | remote file access from higher level code. |
|
197 | remote file access from higher level code. | |
198 | ''' |
|
198 | ''' | |
199 | def __init__(self, base, audit=True): |
|
199 | def __init__(self, base, audit=True, expand=False): | |
|
200 | if expand: | |||
|
201 | base = os.path.realpath(util.expandpath(base)) | |||
200 | self.base = base |
|
202 | self.base = base | |
201 | self._audit = audit |
|
203 | self._audit = audit | |
202 | if audit: |
|
204 | if audit: |
General Comments 0
You need to be logged in to leave comments.
Login now