Mercurial > hg
diff rust/hg-core/src/dirstate_tree/on_disk.rs @ 48221:a32a96079e2d
dirstate-v2: initial Python parser
The dirstate-v2 file format should be supported even if Rust extensions are
not enabled. This changeset adds parsing code that is not used yet.
Differential Revision: https://phab.mercurial-scm.org/D11518
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Sun, 03 Oct 2021 13:18:03 +0200 |
parents | 308d9c245337 |
children | 0524c1359bfc |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/on_disk.rs Fri Oct 08 13:15:22 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/on_disk.rs Sun Oct 03 13:18:03 2021 +0200 @@ -31,10 +31,8 @@ pub(super) const IGNORE_PATTERNS_HASH_LEN: usize = 20; pub(super) type IgnorePatternsHash = [u8; IGNORE_PATTERNS_HASH_LEN]; -/// Must match the constant of the same name in -/// `mercurial/dirstateutils/docket.py` +/// Must match constants of the same names in `mercurial/dirstateutils/v2.py` const TREE_METADATA_SIZE: usize = 44; - const NODE_SIZE: usize = 43; /// Make sure that size-affecting changes are made knowingly