localrepo: remove all internal uses of localrepo.wopener
authorAngel Ezquerra <angel.ezquerra@gmail.com>
Sun, 11 Jan 2015 01:32:36 +0100
changeset 23854 f6070d3a9cb8
parent 23853 0cc663e44258
child 23855 4f23081c901e
localrepo: remove all internal uses of localrepo.wopener It has been replaced with localrepo.wvfs.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sun Jan 11 00:21:58 2015 +0100
+++ b/mercurial/localrepo.py	Sun Jan 11 01:32:36 2015 +0100
@@ -820,7 +820,7 @@
         return self.dirstate.pathto(f, cwd)
 
     def wfile(self, f, mode='r'):
-        return self.wopener(f, mode)
+        return self.wvfs(f, mode)
 
     def _link(self, f):
         return self.wvfs.islink(f)
@@ -873,15 +873,15 @@
         if self._link(filename):
             data = self.wvfs.readlink(filename)
         else:
-            data = self.wopener.read(filename)
+            data = self.wvfs.read(filename)
         return self._filter(self._encodefilterpats, filename, data)
 
     def wwrite(self, filename, data, flags):
         data = self._filter(self._decodefilterpats, filename, data)
         if 'l' in flags:
-            self.wopener.symlink(data, filename)
+            self.wvfs.symlink(data, filename)
         else:
-            self.wopener.write(filename, data)
+            self.wvfs.write(filename, data)
             if 'x' in flags:
                 self.wvfs.setflags(filename, False, True)