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

login
register
mail settings
Submitter phabricator
Date March 11, 2020, 4:25 p.m.
Message ID <0e162489c22bb9ce89dc9ea7a1bcb9bb@localhost.localdomain>
Download mbox | patch
Permalink /patch/45731/
State Not Applicable
Headers show

Comments

phabricator - March 11, 2020, 4:25 p.m.
Closed by commit rHG8a237131ff0f: rust-pathauditor: actually populate the `audited_dirs` cache (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8212?vs=20447&id=20727

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8212/new/

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());