Mercurial > hg
diff rust/hg-core/src/dirstate/entry.rs @ 49101:dd0430434ce9
rust-dirstatemap: add Rust implementation of `reset_state`
This is the new API which has already been defined in Python
Differential Revision: https://phab.mercurial-scm.org/D12499
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 23 Mar 2022 17:27:58 +0100 |
parents | 38e5bb1425dd |
children | c6c1caf28349 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/entry.rs Wed Mar 23 17:38:59 2022 +0100 +++ b/rust/hg-core/src/dirstate/entry.rs Wed Mar 23 17:27:58 2022 +0100 @@ -259,6 +259,12 @@ pub fallback_symlink: Option<bool>, } +#[derive(Debug, Default, Copy, Clone)] +pub struct ParentFileData { + pub mode_size: Option<(u32, u32)>, + pub mtime: Option<TruncatedTimestamp>, +} + impl DirstateEntry { pub fn from_v2_data(v2_data: DirstateV2Data) -> Self { let DirstateV2Data {