# HG changeset patch # User Alexis S. L. Carvalho # Date 1156047191 10800 # Node ID 882e703eaa94761fd5e80e1a342aaf713d378492 # Parent 5bb65c3945a34e4ceaec422bff73e80fbbd96b7e dirstate.py: when comparing mtimes, use only the integer part. Python 2.5 can return timestamps with subsecond resolution. diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -518,7 +518,7 @@ class dirstate(object): if size >= 0 and (size != st.st_size or (mode ^ st.st_mode) & 0100): modified.append(fn) - elif time != st.st_mtime: + elif time != int(st.st_mtime): lookup.append(fn) elif list_clean: clean.append(fn)