Mercurial > hg
comparison rust/hg-cpython/src/dirstate/dispatch.rs @ 47524:69a463a4f193
dirstate: no longer pass the `oldstate` value to the dirstatemap
The dirstatemap already have this information.
Differential Revision: https://phab.mercurial-scm.org/D10966
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Jul 2021 20:59:26 +0200 |
parents | abed645b8e96 |
children | fe4641cf9b72 |
comparison
equal
deleted
inserted
replaced
47523:b76d54b90dc9 | 47524:69a463a4f193 |
---|---|
22 } | 22 } |
23 | 23 |
24 fn add_file( | 24 fn add_file( |
25 &mut self, | 25 &mut self, |
26 filename: &HgPath, | 26 filename: &HgPath, |
27 old_state: EntryState, | |
28 entry: DirstateEntry, | 27 entry: DirstateEntry, |
29 from_p2: bool, | 28 from_p2: bool, |
30 possibly_dirty: bool, | 29 possibly_dirty: bool, |
31 ) -> Result<(), DirstateError> { | 30 ) -> Result<(), DirstateError> { |
32 self.get_mut().add_file( | 31 self.get_mut() |
33 filename, | 32 .add_file(filename, entry, from_p2, possibly_dirty) |
34 old_state, | |
35 entry, | |
36 from_p2, | |
37 possibly_dirty, | |
38 ) | |
39 } | 33 } |
40 | 34 |
41 fn remove_file( | 35 fn remove_file( |
42 &mut self, | 36 &mut self, |
43 filename: &HgPath, | 37 filename: &HgPath, |