equal
deleted
inserted
replaced
529 .push(hg_path.detach_from_tree()) |
529 .push(hg_path.detach_from_tree()) |
530 } else { |
530 } else { |
531 let mtime_looks_clean; |
531 let mtime_looks_clean; |
532 if let Some(dirstate_mtime) = entry.truncated_mtime() { |
532 if let Some(dirstate_mtime) = entry.truncated_mtime() { |
533 let fs_mtime = TruncatedTimestamp::for_mtime_of(fs_metadata) |
533 let fs_mtime = TruncatedTimestamp::for_mtime_of(fs_metadata) |
534 .expect("OS/libc does not support mtime?") |
534 .expect("OS/libc does not support mtime?"); |
535 // For now don’t use sub-second precision for file mtimes |
|
536 .to_integer_second(); |
|
537 mtime_looks_clean = fs_mtime.likely_equal(dirstate_mtime) |
535 mtime_looks_clean = fs_mtime.likely_equal(dirstate_mtime) |
538 && !fs_mtime.likely_equal(self.options.last_normal_time) |
536 && !fs_mtime.likely_equal(self.options.last_normal_time) |
539 } else { |
537 } else { |
540 // No mtime in the dirstate entry |
538 // No mtime in the dirstate entry |
541 mtime_looks_clean = false |
539 mtime_looks_clean = false |