mmap: backed out changeset 875d2af8cb4e stable
authorBoris Feld <boris.feld@octobus.net>
Fri, 18 Jan 2019 16:03:37 +0100
branchstable
changeset 41296 d82dd55024e7
parent 41295 bf4a078b3f88
child 41297 b1ea90613af3
mmap: backed out changeset 875d2af8cb4e There have been concrete and theoretical issues raised, this will need more work during the next cycle.
mercurial/configitems.py
mercurial/localrepo.py
--- a/mercurial/configitems.py	Fri Jan 18 16:02:26 2019 +0100
+++ b/mercurial/configitems.py	Fri Jan 18 16:03:37 2019 +0100
@@ -556,6 +556,9 @@
 coreconfigitem('experimental', 'mergetempdirprefix',
     default=None,
 )
+coreconfigitem('experimental', 'mmapindexthreshold',
+    default=None,
+)
 coreconfigitem('experimental', 'narrow',
     default=False,
 )
@@ -987,10 +990,6 @@
 coreconfigitem('push', 'pushvars.server',
     default=False,
 )
-coreconfigitem('storage', 'mmap-threshold',
-    default=None,
-    alias=[('experimental', 'mmapindexthreshold')],
-)
 coreconfigitem('rewrite', 'backup-bundle',
     default=True,
     alias=[('ui', 'history-editing-backup')],
--- a/mercurial/localrepo.py	Fri Jan 18 16:02:26 2019 +0100
+++ b/mercurial/localrepo.py	Fri Jan 18 16:03:37 2019 +0100
@@ -758,7 +758,8 @@
     if 0 <= chainspan:
         options[b'maxdeltachainspan'] = chainspan
 
-    mmapindexthreshold = ui.configbytes(b'storage', b'mmap-threshold')
+    mmapindexthreshold = ui.configbytes(b'experimental',
+                                        b'mmapindexthreshold')
     if mmapindexthreshold is not None:
         options[b'mmapindexthreshold'] = mmapindexthreshold