##// 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 267 self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
268 268 realfs=False)
269 269 self.vfs = scmutil.vfs(self.path)
270 self.opener = self.vfs
271 270 self.baseui = baseui
272 271 self.ui = baseui.copy()
273 272 self.ui.copy = baseui.copy # prevent copying repo configuration
@@ -384,6 +383,11 b' class localrepository(object):'
384 383 self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
385 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 391 def close(self):
388 392 self._writecaches()
389 393
@@ -123,7 +123,6 b' class statichttprepository(localrepo.loc'
123 123
124 124 vfsclass = build_opener(ui, authinfo)
125 125 self.vfs = vfsclass(self.path)
126 self.opener = self.vfs
127 126 self._phasedefaults = []
128 127
129 128 self.names = namespaces.namespaces()
General Comments 0
You need to be logged in to leave comments. Login now