changeset 38760:17da52bbadb0 stable

localrepo: unconditionally enable general delta with sparse revlogs This come as an extra security, better safe than sorry.
author Boris Feld <boris.feld@octobus.net>
date Tue, 31 Jul 2018 13:53:06 -0700
parents f8cbff2184d7
children d558e53cd6b6
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon Jul 30 15:53:47 2018 +0200
+++ b/mercurial/localrepo.py	Tue Jul 31 13:53:06 2018 -0700
@@ -689,6 +689,8 @@
         self.svfs.options['sparse-read-min-gap-size'] = srmingapsize
         sparserevlog = SPARSEREVLOG_REQUIREMENT in self.requirements
         self.svfs.options['sparse-revlog'] = sparserevlog
+        if sparserevlog:
+            self.svfs.options['generaldelta'] = True
 
         for r in self.requirements:
             if r.startswith('exp-compression-'):