rust/hg-core/src/dirstate_tree/status.rs
changeset 47350 04d1f17f49e7
parent 47349 7138c863d0a1
child 47409 0ef8231e413f
--- 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,