changeset 7119:50f4e866d693

dirstate: always add times to map as integers Fix bug spotted by Dov Feldstern
author Matt Mackall <mpm@selenic.com>
date Sat, 18 Oct 2008 04:26:06 -0500
parents 619ebf82cef2
children db7557359636
files mercurial/dirstate.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Thu Oct 09 10:29:47 2008 -0400
+++ b/mercurial/dirstate.py	Sat Oct 18 04:26:06 2008 -0500
@@ -254,7 +254,7 @@
         self._dirty = True
         self._addpath(f)
         s = os.lstat(self._join(f))
-        self._map[f] = ('n', s.st_mode, s.st_size, s.st_mtime)
+        self._map[f] = ('n', s.st_mode, s.st_size, int(s.st_mtime))
         if f in self._copymap:
             del self._copymap[f]
 
@@ -317,7 +317,7 @@
         self._dirty = True
         s = os.lstat(self._join(f))
         self._addpath(f)
-        self._map[f] = ('m', s.st_mode, s.st_size, s.st_mtime)
+        self._map[f] = ('m', s.st_mode, s.st_size, int(s.st_mtime))
         if f in self._copymap:
             del self._copymap[f]