# 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 -r 5bb65c3945a3 -r 882e703eaa94 mercurial/dirstate.py --- a/mercurial/dirstate.py Sun Aug 20 00:44:54 2006 -0300 +++ b/mercurial/dirstate.py Sun Aug 20 01:13:11 2006 -0300 @@ -518,7 +518,7 @@ 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)