rust/hg-core/src/dirstate.rs
changeset 47511 eaae39894312
parent 47374 bd88b6bfd8da
child 47519 b68d61af85a9
equal deleted inserted replaced
47510:94c58f3aab56 47511:eaae39894312
    81 
    81 
    82 /// A `DirstateEntry` with a size of `-2` means that it was merged from the
    82 /// A `DirstateEntry` with a size of `-2` means that it was merged from the
    83 /// other parent. This allows revert to pick the right status back during a
    83 /// other parent. This allows revert to pick the right status back during a
    84 /// merge.
    84 /// merge.
    85 pub const SIZE_FROM_OTHER_PARENT: i32 = -2;
    85 pub const SIZE_FROM_OTHER_PARENT: i32 = -2;
       
    86 /// A special value used for internal representation of special case in
       
    87 /// dirstate v1 format.
       
    88 pub const SIZE_NON_NORMAL: i32 = -1;
    86 
    89 
    87 pub type StateMap = FastHashMap<HgPathBuf, DirstateEntry>;
    90 pub type StateMap = FastHashMap<HgPathBuf, DirstateEntry>;
    88 pub type StateMapIter<'a> = Box<
    91 pub type StateMapIter<'a> = Box<
    89     dyn Iterator<
    92     dyn Iterator<
    90             Item = Result<(&'a HgPath, DirstateEntry), DirstateV2ParseError>,
    93             Item = Result<(&'a HgPath, DirstateEntry), DirstateV2ParseError>,