Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51002:569eb5d0420d
revlog: document the `update_caches` method
A small docstring does not hurt.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 19 Sep 2023 23:13:16 +0200 |
parents | 39fa0b948f5a |
children | 6c3798b4597f |
comparison
equal
deleted
inserted
replaced
51001:39fa0b948f5a | 51002:569eb5d0420d |
---|---|
906 ): | 906 ): |
907 return False | 907 return False |
908 return True | 908 return True |
909 | 909 |
910 def update_caches(self, transaction): | 910 def update_caches(self, transaction): |
911 """update on disk cache | |
912 | |
913 If a transaction is passed, the update may be delayed to transaction | |
914 commit.""" | |
911 if self._nodemap_file is not None: | 915 if self._nodemap_file is not None: |
912 if transaction is None: | 916 if transaction is None: |
913 nodemaputil.update_persistent_nodemap(self) | 917 nodemaputil.update_persistent_nodemap(self) |
914 else: | 918 else: |
915 nodemaputil.setup_persistent_nodemap(transaction, self) | 919 nodemaputil.setup_persistent_nodemap(transaction, self) |