mercurial/revlog.py
changeset 41203 d0de4fdd87aa
parent 41202 e7a2cc84dbc0
child 41204 e3cfe0702eac
--- a/mercurial/revlog.py	Wed Jan 09 17:41:36 2019 -0800
+++ b/mercurial/revlog.py	Wed Jan 09 16:14:09 2019 -0800
@@ -352,6 +352,7 @@
         #  When True, indexfile is opened with checkambig=True at writing, to
         #  avoid file stat ambiguity.
         self._checkambig = checkambig
+        self._mmaplargeindex = mmaplargeindex
         self._censorable = censorable
         # 3-tuple of (node, rev, text) for a raw revision.
         self._revisioncache = None
@@ -406,7 +407,7 @@
             self._compengine = opts['compengine']
         if 'maxdeltachainspan' in opts:
             self._maxdeltachainspan = opts['maxdeltachainspan']
-        if mmaplargeindex and 'mmapindexthreshold' in opts:
+        if self._mmaplargeindex and 'mmapindexthreshold' in opts:
             mmapindexthreshold = opts['mmapindexthreshold']
         self._sparserevlog = bool(opts.get('sparse-revlog', False))
         withsparseread = bool(opts.get('with-sparse-read', False))