mercurial/dirstate.py
changeset 26630 3111b45a2bbf
parent 26592 502b56a9e897
child 26632 59b5e8844eb0
--- a/mercurial/dirstate.py	Tue Sep 29 00:18:49 2015 -0700
+++ b/mercurial/dirstate.py	Wed Oct 14 02:40:04 2015 +0900
@@ -627,7 +627,7 @@
     def _writedirstate(self, st):
         # use the modification time of the newly created temporary file as the
         # filesystem's notion of 'now'
-        now = util.fstat(st).st_mtime
+        now = util.statmtimesec(util.fstat(st)) & _rangemask
         st.write(parsers.pack_dirstate(self._map, self._copymap, self._pl, now))
         st.close()
         self._lastnormaltime = 0