Mercurial > hg
diff mercurial/dirstate.py @ 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 | 2b8a2248312a |
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]