##// END OF EJS Templates
localrepo: deprecate 'repo.opener' (API)...
Pierre-Yves David -
r31148:3eaff87a default
parent child Browse files
Show More
@@ -267,7 +267,6 b' class localrepository(object):'
267 self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
267 self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
268 realfs=False)
268 realfs=False)
269 self.vfs = scmutil.vfs(self.path)
269 self.vfs = scmutil.vfs(self.path)
270 self.opener = self.vfs
271 self.baseui = baseui
270 self.baseui = baseui
272 self.ui = baseui.copy()
271 self.ui = baseui.copy()
273 self.ui.copy = baseui.copy # prevent copying repo configuration
272 self.ui.copy = baseui.copy # prevent copying repo configuration
@@ -384,6 +383,11 b' class localrepository(object):'
384 self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
383 self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
385 return self.wvfs
384 return self.wvfs
386
385
386 @property
387 def opener(self):
388 self.ui.deprecwarn("use 'repo.vfs' instead of 'repo.opener'", '4.2')
389 return self.vfs
390
387 def close(self):
391 def close(self):
388 self._writecaches()
392 self._writecaches()
389
393
@@ -123,7 +123,6 b' class statichttprepository(localrepo.loc'
123
123
124 vfsclass = build_opener(ui, authinfo)
124 vfsclass = build_opener(ui, authinfo)
125 self.vfs = vfsclass(self.path)
125 self.vfs = vfsclass(self.path)
126 self.opener = self.vfs
127 self._phasedefaults = []
126 self._phasedefaults = []
128
127
129 self.names = namespaces.namespaces()
128 self.names = namespaces.namespaces()
General Comments 0
You need to be logged in to leave comments. Login now