mercurial/localrepo.py
changeset 31145 11a97785f75c
parent 31144 afcc4b4a0826
child 31148 3eaff87a0a89
--- 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()