##// END OF EJS Templates
nodemap: also warm manifest nodemap with other caches...
marmoute -
r45291:97ebdb19 default
parent child Browse files
Show More
@@ -1395,6 +1395,9 b' class imanifestlog(interfaceutil.Interfa'
1395 Raises ``error.LookupError`` if the node is not known.
1395 Raises ``error.LookupError`` if the node is not known.
1396 """
1396 """
1397
1397
1398 def update_caches(transaction):
1399 """update whatever cache are relevant for the used storage."""
1400
1398
1401
1399 class ilocalrepositoryfilestorage(interfaceutil.Interface):
1402 class ilocalrepositoryfilestorage(interfaceutil.Interface):
1400 """Local repository sub-interface providing access to tracked file storage.
1403 """Local repository sub-interface providing access to tracked file storage.
@@ -2509,6 +2509,7 b' class localrepository(object):'
2509 unfi = self.unfiltered()
2509 unfi = self.unfiltered()
2510
2510
2511 self.changelog.update_caches(transaction=tr)
2511 self.changelog.update_caches(transaction=tr)
2512 self.manifestlog.update_caches(transaction=tr)
2512
2513
2513 rbc = unfi.revbranchcache()
2514 rbc = unfi.revbranchcache()
2514 for r in unfi.changelog:
2515 for r in unfi.changelog:
@@ -1951,6 +1951,9 b' class manifestlog(object):'
1951 def rev(self, node):
1951 def rev(self, node):
1952 return self._rootstore.rev(node)
1952 return self._rootstore.rev(node)
1953
1953
1954 def update_caches(self, transaction):
1955 return self._rootstore._revlog.update_caches(transaction=transaction)
1956
1954
1957
1955 @interfaceutil.implementer(repository.imanifestrevisionwritable)
1958 @interfaceutil.implementer(repository.imanifestrevisionwritable)
1956 class memmanifestctx(object):
1959 class memmanifestctx(object):
General Comments 0
You need to be logged in to leave comments. Login now