localrepo: deprecated 'repo.wopener' (API)
The "new" 'repo.wvfs' attribute have been around for almost 5 years. I think we
can deprecate the old form now ;-)
--- a/mercurial/localrepo.py Fri Aug 05 13:49:05 2016 +0200
+++ b/mercurial/localrepo.py Fri Aug 05 13:53:45 2016 +0200
@@ -260,7 +260,6 @@
self.vfs = None
# vfs to access the store part of the repository
self.svfs = None
- self.wopener = self.wvfs
self.root = self.wvfs.base
self.path = self.wvfs.join(".hg")
self.origroot = path
@@ -380,6 +379,11 @@
# generic mapping between names and nodes
self.names = namespaces.namespaces()
+ @property
+ def wopener(self):
+ self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
+ return self.wvfs
+
def close(self):
self._writecaches()