rust/hg-core/src/dirstate_tree/status.rs
changeset 48274 83d0bd45b662
parent 48271 269ff8978086
child 48378 dcec16e799dd
child 48439 b80e5e75d51e
equal deleted inserted replaced
48273:68bb472aee9c 48274:83d0bd45b662
   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