# HG changeset patch # User Boris Feld # Date 2018-07-31 20:53:06 # Node ID 17da52bbadb0110bd165f2b7685aaab4bd4a3756 # Parent f8cbff2184d70b81cb35e70b91d09cba1dff1e31 localrepo: unconditionally enable general delta with sparse revlogs This come as an extra security, better safe than sorry. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -689,6 +689,8 @@ class localrepository(object): 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-'):