localrepo: use "vfs" constructor/field for initialization around "store"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Fri, 31 Aug 2012 02:06:29 +0900
changeset 17654 1dc37491e9fb
parent 17653 dacb50696b75
child 17661 67deea9c1c42
localrepo: use "vfs" constructor/field for initialization around "store"
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Aug 31 02:06:29 2012 +0900
+++ b/mercurial/localrepo.py	Fri Aug 31 02:06:29 2012 +0900
@@ -182,12 +182,12 @@
             if inst.errno != errno.ENOENT:
                 raise
 
-        self.store = store.store(requirements, self.sharedpath, scmutil.opener)
+        self.store = store.store(requirements, self.sharedpath, scmutil.vfs)
         self.spath = self.store.path
-        self.sopener = self.store.opener
-        self.svfs = self.sopener
+        self.svfs = self.store.vfs
+        self.sopener = self.svfs
         self.sjoin = self.store.join
-        self.opener.createmode = self.store.createmode
+        self.vfs.createmode = self.store.createmode
         self._applyrequirements(requirements)
         if create:
             self._writerequirements()