# HG changeset patch # User Pierre-Yves David # Date 2016-08-05 11:49:05 # Node ID afcc4b4a08263bf0a9f12e70c1396d2dad52f5f4 # Parent 628600bf55e4879c916b2e003a097a1c765dcbb1 localrepo: add some comment about role of various vfs object This should make things clearer for most people. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -254,7 +254,12 @@ class localrepository(object): 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")