equal
deleted
inserted
replaced
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>, |