rust/hg-core/src/dirstate/parsers.rs
changeset 49630 c7fb9b74e753
parent 48260 269ff8978086
child 49913 c15b415d1bff
equal deleted inserted replaced
49629:1b6be761c23d 49630:c7fb9b74e753
     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;