Mercurial > hg
comparison mercurial/localrepo.py @ 31144:afcc4b4a0826
localrepo: add some comment about role of various vfs object
This should make things clearer for most people.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 05 Aug 2016 13:49:05 +0200 |
parents | 23080c03a604 |
children | 11a97785f75c |
comparison
equal
deleted
inserted
replaced
31143:628600bf55e4 | 31144:afcc4b4a0826 |
---|---|
252 # only functions defined in module of enabled extensions are invoked | 252 # only functions defined in module of enabled extensions are invoked |
253 featuresetupfuncs = set() | 253 featuresetupfuncs = set() |
254 | 254 |
255 def __init__(self, baseui, path, create=False): | 255 def __init__(self, baseui, path, create=False): |
256 self.requirements = set() | 256 self.requirements = set() |
257 # vfs to access the working copy | |
257 self.wvfs = scmutil.vfs(path, expandpath=True, realpath=True) | 258 self.wvfs = scmutil.vfs(path, expandpath=True, realpath=True) |
259 # vfs to access the content of the repository | |
260 self.vfs = None | |
261 # vfs to access the store part of the repository | |
262 self.svfs = None | |
258 self.wopener = self.wvfs | 263 self.wopener = self.wvfs |
259 self.root = self.wvfs.base | 264 self.root = self.wvfs.base |
260 self.path = self.wvfs.join(".hg") | 265 self.path = self.wvfs.join(".hg") |
261 self.origroot = path | 266 self.origroot = path |
262 self.auditor = pathutil.pathauditor(self.root, self._checknested) | 267 self.auditor = pathutil.pathauditor(self.root, self._checknested) |