Mercurial > hg
comparison rust/hg-core/src/dirstate_tree/owning_dispatch.rs @ 48045:32ef647821b2
dirstate: Skip no-op conversion in Rust DirstateMap::set_v1
Now that the `DirstateItem` python class is implemented in Rust containing
a `DirstateEntry` value, use that value directly instead of reconstructing
it from v1 data.
Also rename from `set_v1` since dirstate-v1 data is not used anymore.
Differential Revision: https://phab.mercurial-scm.org/D11487
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 22 Sep 2021 18:21:58 +0200 |
parents | 37a41267d000 |
children | 9b2a51b2c36a |
comparison
equal
deleted
inserted
replaced
48044:d5528ac9b4f2 | 48045:32ef647821b2 |
---|---|
18 impl DirstateMapMethods for OwningDirstateMap { | 18 impl DirstateMapMethods for OwningDirstateMap { |
19 fn clear(&mut self) { | 19 fn clear(&mut self) { |
20 self.get_mut().clear() | 20 self.get_mut().clear() |
21 } | 21 } |
22 | 22 |
23 fn set_v1(&mut self, filename: &HgPath, entry: DirstateEntry) { | 23 fn set_entry(&mut self, filename: &HgPath, entry: DirstateEntry) { |
24 self.get_mut().set_v1(filename, entry) | 24 self.get_mut().set_entry(filename, entry) |
25 } | 25 } |
26 | 26 |
27 fn add_file( | 27 fn add_file( |
28 &mut self, | 28 &mut self, |
29 filename: &HgPath, | 29 filename: &HgPath, |