Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/dirstate.py @ 2962:882e703eaa94
dirstate.py: when comparing mtimes, use only the integer part.
Python 2.5 can return timestamps with subsecond resolution.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 20 Aug 2006 01:13:11 -0300 |
parents | 3d5547845158 |
children | b1f10d3223c1 |
comparison
equal
deleted
inserted
replaced
2961:5bb65c3945a3 | 2962:882e703eaa94 |
---|---|
516 if not st: | 516 if not st: |
517 st = os.lstat(self.wjoin(fn)) | 517 st = os.lstat(self.wjoin(fn)) |
518 if size >= 0 and (size != st.st_size | 518 if size >= 0 and (size != st.st_size |
519 or (mode ^ st.st_mode) & 0100): | 519 or (mode ^ st.st_mode) & 0100): |
520 modified.append(fn) | 520 modified.append(fn) |
521 elif time != st.st_mtime: | 521 elif time != int(st.st_mtime): |
522 lookup.append(fn) | 522 lookup.append(fn) |
523 elif list_clean: | 523 elif list_clean: |
524 clean.append(fn) | 524 clean.append(fn) |
525 elif type_ == 'm': | 525 elif type_ == 'm': |
526 modified.append(fn) | 526 modified.append(fn) |