Mercurial > hg
comparison mercurial/revlog.py @ 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 |
comparison
equal
deleted
inserted
replaced
51005:569eb5d0420d | 51006:6c3798b4597f |
---|---|
917 nodemaputil.update_persistent_nodemap(self) | 917 nodemaputil.update_persistent_nodemap(self) |
918 else: | 918 else: |
919 nodemaputil.setup_persistent_nodemap(transaction, self) | 919 nodemaputil.setup_persistent_nodemap(transaction, self) |
920 | 920 |
921 def clearcaches(self): | 921 def clearcaches(self): |
922 """Clear in-memory caches""" | |
922 self._revisioncache = None | 923 self._revisioncache = None |
923 self._chainbasecache.clear() | 924 self._chainbasecache.clear() |
924 self._segmentfile.clear_cache() | 925 self._segmentfile.clear_cache() |
925 self._segmentfile_sidedata.clear_cache() | 926 self._segmentfile_sidedata.clear_cache() |
926 self._pcache = {} | 927 self._pcache = {} |