Mercurial > hg
diff rust/hg-core/src/dirstate_tree/owning_dispatch.rs @ 48023:357307feaf61
debugstate: Always call dirstatemap.debug_iter()
… passing it a new `all` argument for the `--all` CLI option,
instead of conditionally calling `.debug_iter()` or `.items()`
This prepares for the next commit.
Differential Revision: https://phab.mercurial-scm.org/D11462
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 20 Sep 2021 19:59:09 +0200 |
parents | 4afd6cc447b9 |
children | 37a41267d000 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/owning_dispatch.rs Fri Sep 17 13:33:45 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/owning_dispatch.rs Mon Sep 20 19:59:09 2021 +0200 @@ -226,6 +226,7 @@ fn debug_iter( &self, + all: bool, ) -> Box< dyn Iterator< Item = Result< @@ -235,6 +236,6 @@ > + Send + '_, > { - self.get().debug_iter() + self.get().debug_iter(all) } }