[PATCH 1 of 5] localrepo: add some comment about role of various vfs object
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Thu Mar 2 02:58:41 UTC 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1470397745 -7200
# Fri Aug 05 13:49:05 2016 +0200
# Node ID b34202587b00d949dd77ff97399e50d6340779a6
# Parent 3f8f53190d6afed0aca6c6527236edad28ce785c
# EXP-Topic vfs.cleanup
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
@@ -253,7 +253,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")
More information about the Mercurial-devel
mailing list