diff -r ecf4b959fa74 -r 24844407fa0d mercurial/pathutil.py --- a/mercurial/pathutil.py Sun Apr 14 02:41:36 2024 +0200 +++ b/mercurial/pathutil.py Sat Apr 13 23:40:28 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,