# HG changeset patch # User FUJIWARA Katsunori # Date 2012-08-30 17:06:29 # Node ID bf2eb3a126d243e9039a10cd091637074f2b9d68 # Parent f65c6a5f256ccaf6176e3bff0df98f2e390e2658 localrepo: use "vfs" constructor instead of "opener" one This patch also changes initialization order of "*opener" and "*vfs" fields: first, "*vfs" fields are initialized , and then, "*opener" ones are initialized. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -117,14 +117,14 @@ class localrepository(object): return self.requirements[:] def __init__(self, baseui, path=None, create=False): - self.wopener = scmutil.opener(path, expand=True) - self.wvfs = self.wopener + self.wvfs = scmutil.vfs(path, expand=True) + self.wopener = self.wvfs self.root = self.wvfs.base self.path = self.wvfs.join(".hg") self.origroot = path self.auditor = scmutil.pathauditor(self.root, self._checknested) - self.opener = scmutil.opener(self.path) - self.vfs = self.opener + self.vfs = scmutil.vfs(self.path) + self.opener = self.vfs self.baseui = baseui self.ui = baseui.copy() # A list of callback to shape the phase if no data were found.