mercurial/localrepo.py
changeset 31148 3eaff87a0a89
parent 31145 11a97785f75c
child 31209 dd2364f5180a
--- a/mercurial/localrepo.py	Thu Mar 02 03:24:58 2017 +0100
+++ b/mercurial/localrepo.py	Fri Aug 05 13:56:10 2016 +0200
@@ -267,7 +267,6 @@
         self.nofsauditor = pathutil.pathauditor(self.root, self._checknested,
                                                 realfs=False)
         self.vfs = scmutil.vfs(self.path)
-        self.opener = self.vfs
         self.baseui = baseui
         self.ui = baseui.copy()
         self.ui.copy = baseui.copy # prevent copying repo configuration
@@ -384,6 +383,11 @@
         self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
         return self.wvfs
 
+    @property
+    def opener(self):
+        self.ui.deprecwarn("use 'repo.vfs' instead of 'repo.opener'", '4.2')
+        return self.vfs
+
     def close(self):
         self._writecaches()