# HG changeset patch # User Matt Mackall # Date 1224321966 18000 # Node ID 50f4e866d693a18bd0a0fe0b3c99ad6be6526316 # Parent 619ebf82cef2b661972bf5bfe05bf0ec3311e239 dirstate: always add times to map as integers Fix bug spotted by Dov Feldstern diff -r 619ebf82cef2 -r 50f4e866d693 mercurial/dirstate.py --- 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]