Comments
Patch
@@ -1920,6 +1920,9 @@
def rev(self, node):
return self._rootstore.rev(node)
+ def update_caches(self, transaction):
+ return self._rootstore._revlog.update_caches(transaction=transaction)
+
@interfaceutil.implementer(repository.imanifestrevisionwritable)
class memmanifestctx(object):
@@ -2509,6 +2509,7 @@
unfi = self.unfiltered()
self.changelog.update_caches(transaction=tr)
+ self.manifestlog.update_caches(transaction=tr)
rbc = unfi.revbranchcache()
for r in unfi.changelog:
@@ -1395,6 +1395,9 @@
Raises ``error.LookupError`` if the node is not known.
"""
+ def update_caches(transaction):
+ """update whatever cache are relevant for the used storage."""
+
class ilocalrepositoryfilestorage(interfaceutil.Interface):
"""Local repository sub-interface providing access to tracked file storage.