Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
49100:38e5bb1425dd | 49101:dd0430434ce9 |
---|---|
255 pub p2_info: bool, | 255 pub p2_info: bool, |
256 pub mode_size: Option<(u32, u32)>, | 256 pub mode_size: Option<(u32, u32)>, |
257 pub mtime: Option<TruncatedTimestamp>, | 257 pub mtime: Option<TruncatedTimestamp>, |
258 pub fallback_exec: Option<bool>, | 258 pub fallback_exec: Option<bool>, |
259 pub fallback_symlink: Option<bool>, | 259 pub fallback_symlink: Option<bool>, |
260 } | |
261 | |
262 #[derive(Debug, Default, Copy, Clone)] | |
263 pub struct ParentFileData { | |
264 pub mode_size: Option<(u32, u32)>, | |
265 pub mtime: Option<TruncatedTimestamp>, | |
260 } | 266 } |
261 | 267 |
262 impl DirstateEntry { | 268 impl DirstateEntry { |
263 pub fn from_v2_data(v2_data: DirstateV2Data) -> Self { | 269 pub fn from_v2_data(v2_data: DirstateV2Data) -> Self { |
264 let DirstateV2Data { | 270 let DirstateV2Data { |