--- a/mercurial/localrepo.py Mon Oct 09 15:13:41 2017 +0200
+++ b/mercurial/localrepo.py Tue Oct 10 17:50:27 2017 +0200
@@ -608,6 +608,11 @@
'mmapindexthreshold')
if mmapindexthreshold is not None:
self.svfs.options['mmapindexthreshold'] = mmapindexthreshold
+ withsparseread = self.ui.configbool('experimental', 'sparse-read')
+ srdensitythres = float(self.ui.config('experimental',
+ 'sparse-read.density-threshold'))
+ self.svfs.options['with-sparse-read'] = withsparseread
+ self.svfs.options['sparse-read-density-threshold'] = srdensitythres
for r in self.requirements:
if r.startswith('exp-compression-'):