# HG changeset patch # User Matt Mackall # Date 2008-10-18 09:26:06 # Node ID 50f4e866d693a18bd0a0fe0b3c99ad6be6526316 # Parent 619ebf82cef2b661972bf5bfe05bf0ec3311e239 dirstate: always add times to map as integers Fix bug spotted by Dov Feldstern diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -254,7 +254,7 @@ class dirstate(object): 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 @@ class dirstate(object): 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]