Mercurial > public > mercurial-scm > hg-stable
comparison rust/hg-core/src/dirstate_tree/dispatch.rs @ 47126: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 | b6339a993b91 |
comparison
equal
deleted
inserted
replaced
47125:623c8e4ddc6d | 47126:d5956136d19d |
---|---|
94 fn set_all_dirs(&mut self) -> Result<(), DirstateMapError>; | 94 fn set_all_dirs(&mut self) -> Result<(), DirstateMapError>; |
95 | 95 |
96 fn set_dirs(&mut self) -> Result<(), DirstateMapError>; | 96 fn set_dirs(&mut self) -> Result<(), DirstateMapError>; |
97 | 97 |
98 fn status<'a>( | 98 fn status<'a>( |
99 &'a self, | 99 &'a mut self, |
100 matcher: &'a (dyn Matcher + Sync), | 100 matcher: &'a (dyn Matcher + Sync), |
101 root_dir: PathBuf, | 101 root_dir: PathBuf, |
102 ignore_files: Vec<PathBuf>, | 102 ignore_files: Vec<PathBuf>, |
103 options: StatusOptions, | 103 options: StatusOptions, |
104 ) -> Result<(DirstateStatus<'a>, Vec<PatternFileWarning>), StatusError>; | 104 ) -> Result<(DirstateStatus<'a>, Vec<PatternFileWarning>), StatusError>; |
256 fn set_dirs(&mut self) -> Result<(), DirstateMapError> { | 256 fn set_dirs(&mut self) -> Result<(), DirstateMapError> { |
257 self.set_dirs() | 257 self.set_dirs() |
258 } | 258 } |
259 | 259 |
260 fn status<'a>( | 260 fn status<'a>( |
261 &'a self, | 261 &'a mut self, |
262 matcher: &'a (dyn Matcher + Sync), | 262 matcher: &'a (dyn Matcher + Sync), |
263 root_dir: PathBuf, | 263 root_dir: PathBuf, |
264 ignore_files: Vec<PathBuf>, | 264 ignore_files: Vec<PathBuf>, |
265 options: StatusOptions, | 265 options: StatusOptions, |
266 ) -> Result<(DirstateStatus<'a>, Vec<PatternFileWarning>), StatusError> | 266 ) -> Result<(DirstateStatus<'a>, Vec<PatternFileWarning>), StatusError> |