--- a/rust/hg-core/src/dirstate/dirstate_map.rs Wed Feb 17 12:06:56 2021 +0100
+++ b/rust/hg-core/src/dirstate/dirstate_map.rs Wed Feb 17 12:24:53 2021 +0100
@@ -6,7 +6,7 @@
// GNU General Public License version 2 or any later version.
use crate::errors::HgError;
-use crate::revlog::node::NULL_NODE_ID;
+use crate::revlog::node::NULL_NODE;
use crate::{
dirstate::{parsers::PARENT_SIZE, EntryState, SIZE_FROM_OTHER_PARENT},
pack_dirstate, parse_dirstate,
@@ -73,8 +73,8 @@
self.non_normal_set = None;
self.other_parent_set = None;
self.set_parents(&DirstateParents {
- p1: NULL_NODE_ID,
- p2: NULL_NODE_ID,
+ p1: NULL_NODE,
+ p2: NULL_NODE,
})
}
@@ -367,8 +367,8 @@
};
} else if file_contents.is_empty() {
parents = DirstateParents {
- p1: NULL_NODE_ID,
- p2: NULL_NODE_ID,
+ p1: NULL_NODE,
+ p2: NULL_NODE,
};
} else {
return Err(