treemanifest: disable readdelta optimization

When tree manifests are stored with one revlog per directory and
loaded lazily, it's unclear how much readdelta will help. If only a
few files change, then only a small part of the full manifest will be
loaded, and the delta chains should also be shorter for tree
manifests. Therefore, let's disable readdelta for tree manifests for
now.
This commit is contained in:
Martin von Zweigbergk 2015-03-10 09:57:42 -07:00
parent a2ad3d1abd
commit eeace59f46

View File

@ -687,7 +687,7 @@ class manifest(revlog.revlog):
return md
def readdelta(self, node):
if self._usemanifestv2:
if self._usemanifestv2 or self._usetreemanifest:
return self._slowreaddelta(node)
r = self.rev(node)
d = mdiff.patchtext(self.revdiff(self.deltaparent(r), r))