Mercurial > hg
changeset 48046:f6d0a89fdf80
dirstate: Don’t drop unrelated data in DirstateMap::set_entry
For example, copy source are handled separately. Removing it goes through
the `copy_map_remove` method (exposed to Python as `.copymap.pop()`)
Differential Revision: https://phab.mercurial-scm.org/D11488
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 22 Sep 2021 18:42:00 +0200 |
parents | 32ef647821b2 |
children | 9b2a51b2c36a |
files | rust/hg-core/src/dirstate_tree/dirstate_map.rs |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/dirstate_map.rs Wed Sep 22 18:21:58 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/dirstate_map.rs Wed Sep 22 18:42:00 2021 +0200 @@ -762,10 +762,6 @@ let node = self.get_or_insert(&filename).expect("no parse error in v1"); node.data = NodeData::Entry(entry); - node.children = ChildNodes::default(); - node.copy_source = None; - node.descendants_with_entry_count = 0; - node.tracked_descendants_count = 0; } fn add_file(