--- a/rust/hg-core/src/dirstate_tree/dispatch.rs Fri Sep 17 13:33:45 2021 +0200
+++ b/rust/hg-core/src/dirstate_tree/dispatch.rs Mon Sep 20 19:59:09 2021 +0200
@@ -290,13 +290,15 @@
/// node stored in this dirstate map, for the purpose of the `hg
/// debugdirstate` command.
///
- /// For nodes that don’t have an entry, `state` is the ASCII space.
+ /// If `all` is true, include nodes that don’t have an entry.
+ /// For such nodes `state` is the ASCII space.
/// An `mtime` may still be present. It is used to optimize `status`.
///
/// Because parse errors can happen during iteration, the iterated items
/// are `Result`s.
fn debug_iter(
&self,
+ all: bool,
) -> Box<
dyn Iterator<
Item = Result<
@@ -538,6 +540,7 @@
fn debug_iter(
&self,
+ all: bool,
) -> Box<
dyn Iterator<
Item = Result<
@@ -547,6 +550,9 @@
> + Send
+ '_,
> {
+ // Not used for the flat (not tree-based) DirstateMap
+ let _ = all;
+
Box::new(
(&**self)
.iter()