Commits

Brodie Rao committed 390e511

Refreshing queue

  • Participants
  • Parent commits fb45176

Comments (0)

Files changed (1)

          if nlink == 0:
              self._fixfilemode(f)
          return fp
-@@ -400,6 +412,98 @@ class vfs(abstractvfs):
+@@ -400,6 +412,97 @@ class vfs(abstractvfs):
          else:
              return self.base
  
 +        self._fpcache = {}
 +
 +    def _cachedfile(self, f, mode):
-+        print repr(_cachedfile)
 +        fp = _cachedfile(f, mode)
 +        st = os.stat(f)
 +        self._fpcache[(f, mode)] = (fp, st)
  opener = vfs
  
  class auditvfs(object):
-@@ -424,6 +528,9 @@ class filtervfs(abstractvfs, auditvfs):
+@@ -424,6 +527,9 @@ class filtervfs(abstractvfs, auditvfs):
      def __call__(self, path, *args, **kwargs):
          return self.vfs(self._filter(path), *args, **kwargs)
  
      def join(self, path):
          if path:
              return self.vfs.join(self._filter(path))
-@@ -443,6 +550,8 @@ class readonlyvfs(abstractvfs, auditvfs)
+@@ -443,6 +549,8 @@ class readonlyvfs(abstractvfs, auditvfs)
              raise util.Abort('this vfs is read only')
          return self.vfs(path, mode, *args, **kw)