diff --git a/mercurial/interfaces/repository.py b/mercurial/interfaces/repository.py --- a/mercurial/interfaces/repository.py +++ b/mercurial/interfaces/repository.py @@ -1532,7 +1532,7 @@ class imanifestlog(interfaceutil.Interfa TODO formalize interface for returned object. """ - def clearcaches(): + def clearcaches(clear_persisted_data: bool = False) -> None: """Clear caches associated with this collection.""" def rev(node): diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -1793,7 +1793,7 @@ class ManifestRevlog: def fulltextcache(self): return self._fulltextcache - def clearcaches(self, clear_persisted_data=False): + def clearcaches(self, clear_persisted_data: bool = False) -> None: self._revlog.clearcaches() self._fulltextcache.clear(clear_persisted_data=clear_persisted_data) self._dirlogcache = {self.tree: self} diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1866,7 +1866,7 @@ class revlog: else: nodemaputil.setup_persistent_nodemap(transaction, self) - def clearcaches(self): + def clearcaches(self, clear_persisted_data: bool = False) -> None: """Clear in-memory caches""" self._chainbasecache.clear() self._inner.clear_cache()