equal
deleted
inserted
replaced
7 use crate::utils::hg_path::HgPath; |
7 use crate::utils::hg_path::HgPath; |
8 use crate::{dirstate::EntryState, DirstateEntry, DirstateParents}; |
8 use crate::{dirstate::EntryState, DirstateEntry, DirstateParents}; |
9 use byteorder::{BigEndian, WriteBytesExt}; |
9 use byteorder::{BigEndian, WriteBytesExt}; |
10 use bytes_cast::{unaligned, BytesCast}; |
10 use bytes_cast::{unaligned, BytesCast}; |
11 use micro_timer::timed; |
11 use micro_timer::timed; |
12 use std::convert::TryFrom; |
|
13 |
12 |
14 /// Parents are stored in the dirstate as byte hashes. |
13 /// Parents are stored in the dirstate as byte hashes. |
15 pub const PARENT_SIZE: usize = 20; |
14 pub const PARENT_SIZE: usize = 20; |
16 /// Dirstate entries have a static part of 8 + 32 + 32 + 32 + 32 bits. |
15 /// Dirstate entries have a static part of 8 + 32 + 32 + 32 + 32 bits. |
17 const MIN_ENTRY_SIZE: usize = 17; |
16 const MIN_ENTRY_SIZE: usize = 17; |