Show More
@@ -153,7 +153,7 b' class localrepository(object):' | |||||
153 | return self.requirements[:] |
|
153 | return self.requirements[:] | |
154 |
|
154 | |||
155 | def __init__(self, baseui, path=None, create=False): |
|
155 | def __init__(self, baseui, path=None, create=False): | |
156 | self.wvfs = scmutil.vfs(path, expand=True) |
|
156 | self.wvfs = scmutil.vfs(path, expandpath=True, realpath=True) | |
157 | self.wopener = self.wvfs |
|
157 | self.wopener = self.wvfs | |
158 | self.root = self.wvfs.base |
|
158 | self.root = self.wvfs.base | |
159 | self.path = self.wvfs.join(".hg") |
|
159 | self.path = self.wvfs.join(".hg") |
@@ -263,9 +263,11 b' class vfs(abstractvfs):' | |||||
263 | This class is used to hide the details of COW semantics and |
|
263 | This class is used to hide the details of COW semantics and | |
264 | remote file access from higher level code. |
|
264 | remote file access from higher level code. | |
265 | ''' |
|
265 | ''' | |
266 | def __init__(self, base, audit=True, expand=False): |
|
266 | def __init__(self, base, audit=True, expandpath=False, realpath=False): | |
267 | if expand: |
|
267 | if expandpath: | |
268 |
base = |
|
268 | base = util.expandpath(base) | |
|
269 | if realpath: | |||
|
270 | base = os.path.realpath(base) | |||
269 | self.base = base |
|
271 | self.base = base | |
270 | self._setmustaudit(audit) |
|
272 | self._setmustaudit(audit) | |
271 | self.createmode = None |
|
273 | self.createmode = None |
General Comments 0
You need to be logged in to leave comments.
Login now