diff mercurial/context.py @ 27016:448cbdab5883

util: drop statmtimesec We've globablly forced stat to return integer times which agrees with our extension code, so this is no longer needed. This speeds up status on mozilla-central substantially: $ hg perfstatus ! wall 0.190179 comb 0.180000 user 0.120000 sys 0.060000 (best of 53) $ hg perfstatus ! wall 0.275729 comb 0.270000 user 0.210000 sys 0.060000 (best of 36)
author Matt Mackall <mpm@selenic.com>
date Thu, 19 Nov 2015 13:15:17 -0600
parents 9b9d4bcc915e
children 37e1fdcb271c
line wrap: on
line diff
--- a/mercurial/context.py	Thu Nov 19 13:21:24 2015 -0600
+++ b/mercurial/context.py	Thu Nov 19 13:15:17 2015 -0600
@@ -1705,7 +1705,7 @@
     def date(self):
         t, tz = self._changectx.date()
         try:
-            return (util.statmtimesec(self._repo.wvfs.lstat(self._path)), tz)
+            return (self._repo.wvfs.lstat(self._path).st_mtime, tz)
         except OSError as err:
             if err.errno != errno.ENOENT:
                 raise