Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/dirstate.rs @ 47956:81aedf1fc897
rust: Add Repo::dirstate_map and use it in `rhg status`
This moves low-level dirstate wrangling out of the status command and into
a more reusable location.
The open dirstate map is lazily initialized and kept on the Repo object,
for reuse by sub-sequent calls.
Differential Revision: https://phab.mercurial-scm.org/D11398
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Thu, 09 Sep 2021 21:04:55 +0200 |
parents | 284a20269a97 |
children | 08efe5945d2b |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate.rs Fri Sep 10 09:53:09 2021 +0200 +++ b/rust/hg-core/src/dirstate.rs Thu Sep 09 21:04:55 2021 +0200 @@ -19,7 +19,7 @@ pub mod parsers; pub mod status; -#[derive(Debug, PartialEq, Clone, BytesCast)] +#[derive(Debug, PartialEq, Copy, Clone, BytesCast)] #[repr(C)] pub struct DirstateParents { pub p1: Node,