Show More
@@ -1532,7 +1532,7 class imanifestlog(interfaceutil.Interfa | |||||
1532 | TODO formalize interface for returned object. |
|
1532 | TODO formalize interface for returned object. | |
1533 | """ |
|
1533 | """ | |
1534 |
|
1534 | |||
1535 | def clearcaches(): |
|
1535 | def clearcaches(clear_persisted_data: bool = False) -> None: | |
1536 | """Clear caches associated with this collection.""" |
|
1536 | """Clear caches associated with this collection.""" | |
1537 |
|
1537 | |||
1538 | def rev(node): |
|
1538 | def rev(node): |
@@ -1793,7 +1793,7 class ManifestRevlog: | |||||
1793 | def fulltextcache(self): |
|
1793 | def fulltextcache(self): | |
1794 | return self._fulltextcache |
|
1794 | return self._fulltextcache | |
1795 |
|
1795 | |||
1796 | def clearcaches(self, clear_persisted_data=False): |
|
1796 | def clearcaches(self, clear_persisted_data: bool = False) -> None: | |
1797 | self._revlog.clearcaches() |
|
1797 | self._revlog.clearcaches() | |
1798 | self._fulltextcache.clear(clear_persisted_data=clear_persisted_data) |
|
1798 | self._fulltextcache.clear(clear_persisted_data=clear_persisted_data) | |
1799 | self._dirlogcache = {self.tree: self} |
|
1799 | self._dirlogcache = {self.tree: self} |
@@ -1866,7 +1866,7 class revlog: | |||||
1866 | else: |
|
1866 | else: | |
1867 | nodemaputil.setup_persistent_nodemap(transaction, self) |
|
1867 | nodemaputil.setup_persistent_nodemap(transaction, self) | |
1868 |
|
1868 | |||
1869 | def clearcaches(self): |
|
1869 | def clearcaches(self, clear_persisted_data: bool = False) -> None: | |
1870 | """Clear in-memory caches""" |
|
1870 | """Clear in-memory caches""" | |
1871 | self._chainbasecache.clear() |
|
1871 | self._chainbasecache.clear() | |
1872 | self._inner.clear_cache() |
|
1872 | self._inner.clear_cache() |
General Comments 0
You need to be logged in to leave comments.
Login now