Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
48022:f2a9db29cb2d | 48023:357307feaf61 |
---|---|
224 self.get_mut().iter_tracked_dirs() | 224 self.get_mut().iter_tracked_dirs() |
225 } | 225 } |
226 | 226 |
227 fn debug_iter( | 227 fn debug_iter( |
228 &self, | 228 &self, |
229 all: bool, | |
229 ) -> Box< | 230 ) -> Box< |
230 dyn Iterator< | 231 dyn Iterator< |
231 Item = Result< | 232 Item = Result< |
232 (&HgPath, (u8, i32, i32, i32)), | 233 (&HgPath, (u8, i32, i32, i32)), |
233 DirstateV2ParseError, | 234 DirstateV2ParseError, |
234 >, | 235 >, |
235 > + Send | 236 > + Send |
236 + '_, | 237 + '_, |
237 > { | 238 > { |
238 self.get().debug_iter() | 239 self.get().debug_iter(all) |
239 } | 240 } |
240 } | 241 } |