Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/dirstate_tree/status.rs @ 47356: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 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/status.rs Fri May 28 11:48:59 2021 +0200 +++ b/rust/hg-core/src/dirstate_tree/status.rs Mon May 31 18:35:44 2021 +0200 @@ -78,8 +78,9 @@ root_cached_mtime, is_at_repo_root, )?; - let outcome = common.outcome.into_inner().unwrap(); + let mut outcome = common.outcome.into_inner().unwrap(); let to_add = common.cached_directory_mtimes_to_add.into_inner().unwrap(); + outcome.dirty = !to_add.is_empty(); for (path, mtime) in &to_add { let node = DirstateMap::get_or_insert_node( dmap.on_disk,