changeset 51006:6c3798b4597f

revlog: document the `clearcaches` method A small docstring does not hurt.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Sep 2023 23:14:01 +0200
parents 569eb5d0420d
children ccddd2f54013
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Sep 19 23:13:16 2023 +0200
+++ b/mercurial/revlog.py	Tue Sep 19 23:14:01 2023 +0200
@@ -919,6 +919,7 @@
                 nodemaputil.setup_persistent_nodemap(transaction, self)
 
     def clearcaches(self):
+        """Clear in-memory caches"""
         self._revisioncache = None
         self._chainbasecache.clear()
         self._segmentfile.clear_cache()