rust/hg-core/src/dirstate.rs
changeset 49439 b07465adbcc8
parent 48068 bf8837e3d7ce
child 49930 e98fd81bb151
equal deleted inserted replaced
49438:44d4fd09982f 49439:b07465adbcc8
    28 impl DirstateParents {
    28 impl DirstateParents {
    29     pub const NULL: Self = Self {
    29     pub const NULL: Self = Self {
    30         p1: NULL_NODE,
    30         p1: NULL_NODE,
    31         p2: NULL_NODE,
    31         p2: NULL_NODE,
    32     };
    32     };
       
    33 
       
    34     pub fn is_merge(&self) -> bool {
       
    35         return !(self.p2 == NULL_NODE);
       
    36     }
    33 }
    37 }
    34 
    38 
    35 pub type StateMapIter<'a> = Box<
    39 pub type StateMapIter<'a> = Box<
    36     dyn Iterator<
    40     dyn Iterator<
    37             Item = Result<(&'a HgPath, DirstateEntry), DirstateV2ParseError>,
    41             Item = Result<(&'a HgPath, DirstateEntry), DirstateV2ParseError>,