localrepo: unconditionally enable general delta with sparse revlogs stable
authorBoris Feld <boris.feld@octobus.net>
Tue, 31 Jul 2018 13:53:06 -0700
branchstable
changeset 38760 17da52bbadb0
parent 38759 f8cbff2184d7
child 38761 d558e53cd6b6
localrepo: unconditionally enable general delta with sparse revlogs This come as an extra security, better safe than sorry.
mercurial/localrepo.py
--- 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-'):