diff -r 96cb63a86ee5 -r 6454c117c6a4 mercurial/pathutil.py --- a/mercurial/pathutil.py Thu Jun 13 09:52:39 2024 +0200 +++ b/mercurial/pathutil.py Mon Jun 24 12:05:31 2024 +0200 @@ -180,6 +180,13 @@ self.auditeddir.clear() self._cached = False + def clear_audit_cache(self): + """reset all audit cache + + intended for debug and performance benchmark purposes""" + self.audited.clear() + self.auditeddir.clear() + def canonpath( root: bytes,