Mercurial > hg
comparison rust/hg-core/src/dirstate/dirstate_map.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 | 008959fcbfb2 |
children | 76f1c76186a1 |
comparison
equal
deleted
inserted
replaced
48044:d5528ac9b4f2 | 48045:32ef647821b2 |
---|---|
62 self.copy_map.clear(); | 62 self.copy_map.clear(); |
63 self.non_normal_set = None; | 63 self.non_normal_set = None; |
64 self.other_parent_set = None; | 64 self.other_parent_set = None; |
65 } | 65 } |
66 | 66 |
67 pub fn set_v1_inner(&mut self, filename: &HgPath, entry: DirstateEntry) { | 67 pub fn set_entry(&mut self, filename: &HgPath, entry: DirstateEntry) { |
68 self.state_map.insert(filename.to_owned(), entry); | 68 self.state_map.insert(filename.to_owned(), entry); |
69 } | 69 } |
70 | 70 |
71 /// Add a tracked file to the dirstate | 71 /// Add a tracked file to the dirstate |
72 pub fn add_file( | 72 pub fn add_file( |