rust-pathauditor: actually populate the `audited_dirs` cache
authorRaphaël Gomès <rgomes@octobus.net>
Wed, 04 Mar 2020 15:12:08 +0100
changeset 44534 8a237131ff0f
parent 44533 e63b4a1f2271
child 44535 07d9fd6097e6
rust-pathauditor: actually populate the `audited_dirs` cache I forgot this when rewriting this logic during the review process. Differential Revision: https://phab.mercurial-scm.org/D8212
rust/hg-core/src/utils/path_auditor.rs
--- a/rust/hg-core/src/utils/path_auditor.rs	Wed Mar 04 15:10:03 2020 +0100
+++ b/rust/hg-core/src/utils/path_auditor.rs	Wed Mar 04 15:12:08 2020 +0100
@@ -117,6 +117,7 @@
                 continue;
             }
             self.check_filesystem(&prefix, &path)?;
+            self.audited_dirs.insert(prefix.to_owned());
         }
 
         self.audited.insert(path.to_owned());