diff mercurial/statichttprepo.py @ 30219:3c8811efdddc stable

manifest: make manifestlog a storecache The old @property on manifestlog was broken. It meant that we would always recreate the manifestlog instance, which meant the cache was never hit. Since we'll eventually remove repo.manifest and make manifestlog the only property, let's go ahead and make manifestlog the @storecache property, have manifestlog own the manifest instance, and have repo.manifest refer to it via manifestlog. This means all accesses go through repo.manifestlog, which is now invalidated correctly.
author Durham Goode <durham@fb.com>
date Tue, 18 Oct 2016 17:33:39 -0700
parents c1696430254f
children e04ab2a5bf90
line wrap: on
line diff
--- a/mercurial/statichttprepo.py	Tue Oct 18 17:32:51 2016 -0700
+++ b/mercurial/statichttprepo.py	Tue Oct 18 17:33:39 2016 -0700
@@ -155,7 +155,7 @@
         self._filecache = {}
         self.requirements = requirements
 
-        self.manifest = manifest.manifest(self.svfs)
+        self.manifestlog = manifest.manifestlog(self.svfs, self)
         self.changelog = changelog.changelog(self.svfs)
         self._tags = None
         self.nodetagscache = None