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)