Patchwork D8212: rust-pathauditor: actually populate the `audited_dirs` cache

login
register
mail settings
Submitter phabricator
Date March 4, 2020, 2:45 p.m.
Message ID <differential-rev-PHID-DREV-n4dhd55rtuh2vz6y5ndm-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/45452/
State Superseded
Headers show

Comments

phabricator - March 4, 2020, 2:45 p.m.
Alphare created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I forgot this when rewriting this logic during the review process.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8212

AFFECTED FILES
  rust/hg-core/src/utils/path_auditor.rs

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/rust/hg-core/src/utils/path_auditor.rs b/rust/hg-core/src/utils/path_auditor.rs
--- a/rust/hg-core/src/utils/path_auditor.rs
+++ b/rust/hg-core/src/utils/path_auditor.rs
@@ -117,6 +117,7 @@ 
                 continue;
             }
             self.check_filesystem(&prefix, &path)?;
+            self.audited_dirs.insert(prefix.to_owned());
         }
 
         self.audited.insert(path.to_owned());