rust/hg-core/src/dirstate_tree/status.rs
changeset 48391 b80e5e75d51e
parent 48263 83d0bd45b662
child 48422 000130cfafb6
equal deleted inserted replaced
48390:322525db4c98 48391:b80e5e75d51e
   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                 // There might be a change in the future if for example the
       
   536                 // internal clock become off while process run, but this is a
       
   537                 // case where the issues the user would face
       
   538                 // would be a lot worse and there is nothing we
       
   539                 // can really do.
   535                 mtime_looks_clean = fs_mtime.likely_equal(dirstate_mtime)
   540                 mtime_looks_clean = fs_mtime.likely_equal(dirstate_mtime)
   536                     && !fs_mtime.likely_equal(self.options.last_normal_time)
       
   537             } else {
   541             } else {
   538                 // No mtime in the dirstate entry
   542                 // No mtime in the dirstate entry
   539                 mtime_looks_clean = false
   543                 mtime_looks_clean = false
   540             };
   544             };
   541             if !mtime_looks_clean {
   545             if !mtime_looks_clean {