revlog: document the `clearcaches` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Sep 2023 23:14:01 +0200
changeset 51006 6c3798b4597f
parent 51005 569eb5d0420d
child 51007 ccddd2f54013
revlog: document the `clearcaches` method A small docstring does not hurt.
mercurial/revlog.py
--- 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()