##// END OF EJS Templates
context: use "vfs.lstat()" instead of "os.lstat()"
FUJIWARA Katsunori -
r19901:4d3ce164 default
parent child Browse files
Show More
@@ -1248,11 +1248,11 b' class workingfilectx(committablefilectx)'
1248 return rp, self._changectx._parents[0]._manifest.get(rp, nullid)
1248 return rp, self._changectx._parents[0]._manifest.get(rp, nullid)
1249
1249
1250 def size(self):
1250 def size(self):
1251 return os.lstat(self._repo.wjoin(self._path)).st_size
1251 return self._repo.wvfs.lstat(self._path).st_size
1252 def date(self):
1252 def date(self):
1253 t, tz = self._changectx.date()
1253 t, tz = self._changectx.date()
1254 try:
1254 try:
1255 return (int(os.lstat(self._repo.wjoin(self._path)).st_mtime), tz)
1255 return (int(self._repo.wvfs.lstat(self._path).st_mtime), tz)
1256 except OSError, err:
1256 except OSError, err:
1257 if err.errno != errno.ENOENT:
1257 if err.errno != errno.ENOENT:
1258 raise
1258 raise
General Comments 0
You need to be logged in to leave comments. Login now