comparison rust/hg-core/src/dirstate_tree/dirstate_map.rs @ 47112:d5956136d19d

dirstate-tree: Give to `status()` mutable access to the `DirstateMap` Differential Revision: https://phab.mercurial-scm.org/D10546
author Simon Sapin <simon.sapin@octobus.net>
date Fri, 16 Apr 2021 12:12:04 +0200
parents 9c6b458a08e1
children be579775c2d9
comparison
equal deleted inserted replaced
47111:623c8e4ddc6d 47112:d5956136d19d
574 // to be recomputed 574 // to be recomputed
575 Ok(()) 575 Ok(())
576 } 576 }
577 577
578 fn status<'a>( 578 fn status<'a>(
579 &'a self, 579 &'a mut self,
580 _matcher: &'a (dyn Matcher + Sync), 580 matcher: &'a (dyn Matcher + Sync),
581 _root_dir: PathBuf, 581 root_dir: PathBuf,
582 _ignore_files: Vec<PathBuf>, 582 ignore_files: Vec<PathBuf>,
583 _options: StatusOptions, 583 options: StatusOptions,
584 ) -> Result<(DirstateStatus<'a>, Vec<PatternFileWarning>), StatusError> 584 ) -> Result<(DirstateStatus<'a>, Vec<PatternFileWarning>), StatusError>
585 { 585 {
586 todo!() 586 super::status::status(self, matcher, root_dir, ignore_files, options)
587 } 587 }
588 588
589 fn copy_map_len(&self) -> usize { 589 fn copy_map_len(&self) -> usize {
590 self.nodes_with_copy_source_count 590 self.nodes_with_copy_source_count
591 } 591 }