##// END OF EJS Templates
localrepo: deprecated 'repo.wopener' (API)...
Pierre-Yves David -
r31145:11a97785 default
parent child Browse files
Show More
@@ -260,7 +260,6 b' class localrepository(object):'
260 self.vfs = None
260 self.vfs = None
261 # vfs to access the store part of the repository
261 # vfs to access the store part of the repository
262 self.svfs = None
262 self.svfs = None
263 self.wopener = self.wvfs
264 self.root = self.wvfs.base
263 self.root = self.wvfs.base
265 self.path = self.wvfs.join(".hg")
264 self.path = self.wvfs.join(".hg")
266 self.origroot = path
265 self.origroot = path
@@ -380,6 +379,11 b' class localrepository(object):'
380 # generic mapping between names and nodes
379 # generic mapping between names and nodes
381 self.names = namespaces.namespaces()
380 self.names = namespaces.namespaces()
382
381
382 @property
383 def wopener(self):
384 self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
385 return self.wvfs
386
383 def close(self):
387 def close(self):
384 self._writecaches()
388 self._writecaches()
385
389
General Comments 0
You need to be logged in to leave comments. Login now