Mercurial > hg
changeset 24600:ea24cf92557a
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.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 10 Mar 2015 09:57:42 -0700 |
parents | 2a73829ebe17 |
children | d80819f67d59 |
files | mercurial/manifest.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/manifest.py Mon Mar 30 15:38:24 2015 -0700 +++ b/mercurial/manifest.py Tue Mar 10 09:57:42 2015 -0700 @@ -687,7 +687,7 @@ 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))