comparison 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
comparison
equal deleted inserted replaced
48259:84f6b0c41b90 48260:269ff8978086
10 //! and will only be triggered in narrow cases. 10 //! and will only be triggered in narrow cases.
11 11
12 use crate::dirstate_tree::on_disk::DirstateV2ParseError; 12 use crate::dirstate_tree::on_disk::DirstateV2ParseError;
13 13
14 use crate::{ 14 use crate::{
15 dirstate::TruncatedTimestamp,
15 utils::hg_path::{HgPath, HgPathError}, 16 utils::hg_path::{HgPath, HgPathError},
16 PatternError, 17 PatternError,
17 }; 18 };
18 19
19 use std::{borrow::Cow, fmt}; 20 use std::{borrow::Cow, fmt};
62 #[derive(Debug, Copy, Clone)] 63 #[derive(Debug, Copy, Clone)]
63 pub struct StatusOptions { 64 pub struct StatusOptions {
64 /// Remember the most recent modification timeslot for status, to make 65 /// Remember the most recent modification timeslot for status, to make
65 /// sure we won't miss future size-preserving file content modifications 66 /// sure we won't miss future size-preserving file content modifications
66 /// that happen within the same timeslot. 67 /// that happen within the same timeslot.
67 pub last_normal_time: i64, 68 pub last_normal_time: TruncatedTimestamp,
68 /// Whether we are on a filesystem with UNIX-like exec flags 69 /// Whether we are on a filesystem with UNIX-like exec flags
69 pub check_exec: bool, 70 pub check_exec: bool,
70 pub list_clean: bool, 71 pub list_clean: bool,
71 pub list_unknown: bool, 72 pub list_unknown: bool,
72 pub list_ignored: bool, 73 pub list_ignored: bool,