Mercurial > hg
diff rust/hg-core/src/dirstate/status.rs @ 48260:269ff8978086
dirstate: store mtimes with nanosecond precision in memory
Keep integer seconds since the Unix epoch,
together with integer nanoseconds in the `0 <= n < 1e9` range.
For now, nanoseconds are still always zero.
This commit is about data structure changes.
Differential Revision: https://phab.mercurial-scm.org/D11684
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 18 Oct 2021 11:23:07 +0200 |
parents | bf8837e3d7ce |
children | b80e5e75d51e |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/status.rs Tue Oct 19 21:03:13 2021 +0200 +++ b/rust/hg-core/src/dirstate/status.rs Mon Oct 18 11:23:07 2021 +0200 @@ -12,6 +12,7 @@ use crate::dirstate_tree::on_disk::DirstateV2ParseError; use crate::{ + dirstate::TruncatedTimestamp, utils::hg_path::{HgPath, HgPathError}, PatternError, }; @@ -64,7 +65,7 @@ /// Remember the most recent modification timeslot for status, to make /// sure we won't miss future size-preserving file content modifications /// that happen within the same timeslot. - pub last_normal_time: i64, + pub last_normal_time: TruncatedTimestamp, /// Whether we are on a filesystem with UNIX-like exec flags pub check_exec: bool, pub list_clean: bool,