diff --git a/rust/hg-core/src/dirstate_tree/dirstate_map.rs b/rust/hg-core/src/dirstate_tree/dirstate_map.rs
--- a/rust/hg-core/src/dirstate_tree/dirstate_map.rs
+++ b/rust/hg-core/src/dirstate_tree/dirstate_map.rs
@@ -712,11 +712,17 @@ impl<'on_disk> super::dispatch::Dirstate
had_entry: bool,
had_copy_source: bool,
}
+
+ /// If this returns `Ok(Some((dropped, removed)))`, then
+ ///
+ /// * `dropped` is about the leaf node that was at `filename`
+ /// * `removed` is whether this particular level of recursion just
+ /// removed a node in `nodes`.
fn recur<'on_disk>(
on_disk: &'on_disk [u8],
nodes: &mut ChildNodes<'on_disk>,
path: &HgPath,
- ) -> Result