Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 44445:336ec75ed1ac
nodemap: warm the persistent nodemap on disk with debugupdatecache
When appropriate, the nodemap cache file will be created.
Differential Revision: https://phab.mercurial-scm.org/D8173
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 18 Feb 2020 19:11:13 +0100 |
parents | f7459da77f23 |
children | 9d2b2df2c2ba |
comparison
equal
deleted
inserted
replaced
44444:7b1f516e7606 | 44445:336ec75ed1ac |
---|---|
745 if (self.flags(baserev) & REVIDX_RAWTEXT_CHANGING_FLAGS) or ( | 745 if (self.flags(baserev) & REVIDX_RAWTEXT_CHANGING_FLAGS) or ( |
746 self.flags(rev) & REVIDX_RAWTEXT_CHANGING_FLAGS | 746 self.flags(rev) & REVIDX_RAWTEXT_CHANGING_FLAGS |
747 ): | 747 ): |
748 return False | 748 return False |
749 return True | 749 return True |
750 | |
751 def update_caches(self, transaction): | |
752 if self.nodemap_file is not None: | |
753 if transaction is None: | |
754 nodemaputil.update_persistent_nodemap(self) | |
755 else: | |
756 nodemaputil.setup_persistent_nodemap(transaction, self) | |
750 | 757 |
751 def clearcaches(self): | 758 def clearcaches(self): |
752 self._revisioncache = None | 759 self._revisioncache = None |
753 self._chainbasecache.clear() | 760 self._chainbasecache.clear() |
754 self._chunkcache = (0, b'') | 761 self._chunkcache = (0, b'') |