Mercurial > hg-stable
changeset 4117:eb0967c6e77b
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.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 26 Feb 2007 21:57:33 +0100 |
parents | d5011e347476 |
children | 35b39097c3e6 |
files | mercurial/context.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Mon Feb 26 12:12:29 2007 -0600 +++ b/mercurial/context.py Mon Feb 26 21:57:33 2007 +0100 @@ -510,7 +510,7 @@ 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)