changeset 44534:8a237131ff0f

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
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 04 Mar 2020 15:12:08 +0100
parents e63b4a1f2271
children 07d9fd6097e6
files rust/hg-core/src/utils/path_auditor.rs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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());