mercurial/localrepo.py
changeset 34296 3c9691728237
parent 34100 1632999d4bed
child 34377 a14642bdf364
--- a/mercurial/localrepo.py	Thu Sep 21 05:54:34 2017 -0700
+++ b/mercurial/localrepo.py	Wed Sep 13 17:26:26 2017 +0000
@@ -604,6 +604,10 @@
         chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan', -1)
         if 0 <= chainspan:
             self.svfs.options['maxdeltachainspan'] = chainspan
+        mmapindexthreshold = self.ui.configbytes('experimental',
+                                                 'mmapindexthreshold', None)
+        if mmapindexthreshold is not None:
+            self.svfs.options['mmapindexthreshold'] = mmapindexthreshold
 
         for r in self.requirements:
             if r.startswith('exp-compression-'):