Mercurial > hg
comparison rust/hg-core/src/dirstate_tree/status.rs @ 47350:04d1f17f49e7
dirstate-v2: Write .hg/dirstate back to disk on directory cache changes
Differential Revision: https://phab.mercurial-scm.org/D10827
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 31 May 2021 18:35:44 +0200 |
parents | 7138c863d0a1 |
children | 0ef8231e413f |
comparison
equal
deleted
inserted
replaced
47349:7138c863d0a1 | 47350:04d1f17f49e7 |
---|---|
76 &root_dir, | 76 &root_dir, |
77 root_dir_metadata, | 77 root_dir_metadata, |
78 root_cached_mtime, | 78 root_cached_mtime, |
79 is_at_repo_root, | 79 is_at_repo_root, |
80 )?; | 80 )?; |
81 let outcome = common.outcome.into_inner().unwrap(); | 81 let mut outcome = common.outcome.into_inner().unwrap(); |
82 let to_add = common.cached_directory_mtimes_to_add.into_inner().unwrap(); | 82 let to_add = common.cached_directory_mtimes_to_add.into_inner().unwrap(); |
83 outcome.dirty = !to_add.is_empty(); | |
83 for (path, mtime) in &to_add { | 84 for (path, mtime) in &to_add { |
84 let node = DirstateMap::get_or_insert_node( | 85 let node = DirstateMap::get_or_insert_node( |
85 dmap.on_disk, | 86 dmap.on_disk, |
86 &mut dmap.root, | 87 &mut dmap.root, |
87 path, | 88 path, |