diff -r 51cd86735608 -r 8210c3f46912 rust/hg-core/src/dirstate.rs --- a/rust/hg-core/src/dirstate.rs Thu Nov 07 10:32:26 2019 +0100 +++ b/rust/hg-core/src/dirstate.rs Thu Nov 07 11:13:31 2019 +0100 @@ -32,6 +32,11 @@ pub size: i32, } +/// A `DirstateEntry` with a size of `-2` means that it was merged from the +/// other parent. This allows revert to pick the right status back during a +/// merge. +pub const SIZE_FROM_OTHER_PARENT: i32 = -2; + pub type StateMap = HashMap; pub type StateMapIter<'a> = hash_map::Iter<'a, HgPathBuf, DirstateEntry>; pub type CopyMap = HashMap;