changeset 23854:f6070d3a9cb8

localrepo: remove all internal uses of localrepo.wopener It has been replaced with localrepo.wvfs.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Sun, 11 Jan 2015 01:32:36 +0100
parents 0cc663e44258
children 4f23081c901e
files mercurial/localrepo.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)