changeset 31154: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 628600bf55e4
children 11a97785f75c
files mercurial/localrepo.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Jan 19 16:27:08 2017 -0500
+++ b/mercurial/localrepo.py	Fri Aug 05 13:49:05 2016 +0200
@@ -254,7 +254,12 @@
 
     def __init__(self, baseui, path, create=False):
         self.requirements = set()
+        # vfs to access the working copy
         self.wvfs = scmutil.vfs(path, expandpath=True, realpath=True)
+        # vfs to access the content of the repository
+        self.vfs = None
+        # vfs to access the store part of the repository
+        self.svfs = None
         self.wopener = self.wvfs
         self.root = self.wvfs.base
         self.path = self.wvfs.join(".hg")