Patchwork D5562: revlog: store mmaplargeindex as an instance attribute

login
register
mail settings
Submitter phabricator
Date Jan. 13, 2019, 3:27 a.m.
Message ID <34bdb7580fd84f12401764f1759ebda2@localhost.localdomain>
Download mbox | patch
Permalink /patch/37697/
State Not Applicable
Headers show

Comments

phabricator - Jan. 13, 2019, 3:27 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd0de4fdd87aa: revlog: store mmaplargeindex as an instance attribute (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5562?vs=13158&id=13194

REVISION DETAIL
  https://phab.mercurial-scm.org/D5562

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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))