context: use "vfs.lstat()" instead of "os.lstat()"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 15 Oct 2013 00:51:04 +0900
changeset 19901 4d3ce1646dfc
parent 19900 7c21e3398931
child 19902 12a8bdd97b4f
context: use "vfs.lstat()" instead of "os.lstat()"
mercurial/context.py
--- a/mercurial/context.py	Tue Oct 15 00:51:04 2013 +0900
+++ b/mercurial/context.py	Tue Oct 15 00:51:04 2013 +0900
@@ -1248,11 +1248,11 @@
         return rp, self._changectx._parents[0]._manifest.get(rp, nullid)
 
     def size(self):
-        return os.lstat(self._repo.wjoin(self._path)).st_size
+        return self._repo.wvfs.lstat(self._path).st_size
     def date(self):
         t, tz = self._changectx.date()
         try:
-            return (int(os.lstat(self._repo.wjoin(self._path)).st_mtime), tz)
+            return (int(self._repo.wvfs.lstat(self._path).st_mtime), tz)
         except OSError, err:
             if err.errno != errno.ENOENT:
                 raise