--- a/rust/hg-core/src/dirstate_tree/status.rs Tue Mar 29 18:21:40 2022 +0200
+++ b/rust/hg-core/src/dirstate_tree/status.rs Fri Apr 08 16:03:39 2022 +0200
@@ -140,10 +140,7 @@
// Remove outdated mtimes before adding new mtimes, in case a given
// directory is both
for path in &outdated {
- let node = dmap.get_or_insert(path)?;
- if let NodeData::CachedDirectory { .. } = &node.data {
- node.data = NodeData::None
- }
+ dmap.clear_cached_mtime(path)?;
}
for (path, mtime) in &new_cachable {
let node = dmap.get_or_insert(path)?;