Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 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 | ae17555ef93f |
children | 0a57945aaf7f |
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-'):