##// END OF EJS Templates
localrepo: add "vfs" fields to "localrepository" for migration from "opener"...
FUJIWARA Katsunori -
r17156:70343650 default
parent child Browse files
Show More
@@ -42,7 +42,9 class localrepository(repo.repository):
42 self.origroot = path
42 self.origroot = path
43 self.auditor = scmutil.pathauditor(self.root, self._checknested)
43 self.auditor = scmutil.pathauditor(self.root, self._checknested)
44 self.opener = scmutil.opener(self.path)
44 self.opener = scmutil.opener(self.path)
45 self.vfs = self.opener
45 self.wopener = scmutil.opener(self.root)
46 self.wopener = scmutil.opener(self.root)
47 self.wvfs = self.wopener
46 self.baseui = baseui
48 self.baseui = baseui
47 self.ui = baseui.copy()
49 self.ui = baseui.copy()
48 # A list of callback to shape the phase if no data were found.
50 # A list of callback to shape the phase if no data were found.
@@ -104,6 +106,7 class localrepository(repo.repository):
104 self.store = store.store(requirements, self.sharedpath, scmutil.opener)
106 self.store = store.store(requirements, self.sharedpath, scmutil.opener)
105 self.spath = self.store.path
107 self.spath = self.store.path
106 self.sopener = self.store.opener
108 self.sopener = self.store.opener
109 self.svfs = self.sopener
107 self.sjoin = self.store.join
110 self.sjoin = self.store.join
108 self.opener.createmode = self.store.createmode
111 self.opener.createmode = self.store.createmode
109 self._applyrequirements(requirements)
112 self._applyrequirements(requirements)
@@ -87,6 +87,7 class statichttprepository(localrepo.loc
87
87
88 opener = build_opener(ui, authinfo)
88 opener = build_opener(ui, authinfo)
89 self.opener = opener(self.path)
89 self.opener = opener(self.path)
90 self.vfs = self.opener
90 self._phasedefaults = []
91 self._phasedefaults = []
91
92
92 try:
93 try:
@@ -112,6 +113,7 class statichttprepository(localrepo.loc
112 self.store = store.store(requirements, self.path, opener)
113 self.store = store.store(requirements, self.path, opener)
113 self.spath = self.store.path
114 self.spath = self.store.path
114 self.sopener = self.store.opener
115 self.sopener = self.store.opener
116 self.svfs = self.sopener
115 self.sjoin = self.store.join
117 self.sjoin = self.store.join
116 self._filecache = {}
118 self._filecache = {}
117
119
General Comments 0
You need to be logged in to leave comments. Login now