# HG changeset patch # User Thomas Arendsen Hein # Date 2007-02-26 20:57:33 # Node ID eb0967c6e77b66a1096584c882725cb779caf90f # Parent d5011e347476fb77ab4d7c31d21c239b4f83f879 Use only integer part of mtime in workingfilectx.date(), fixes test-context.py Similar to what is done in dirstate.status() (changeset 882e703eaa94) and has to be removed when Mercurial switches to subsecond granularity. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -510,7 +510,7 @@ class workingfilectx(filectx): def date(self): t, tz = self._changectx.date() try: - return (os.lstat(self._repo.wjoin(self._path)).st_mtime, tz) + return (int(os.lstat(self._repo.wjoin(self._path)).st_mtime), tz) except OSError, err: if err.errno != errno.ENOENT: raise return (t, tz)