##// END OF EJS Templates
revlog: store mmaplargeindex as an instance attribute...
Gregory Szorc -
r41239:d0de4fdd default
parent child Browse files
Show More
@@ -352,6 +352,7 b' class revlog(object):'
352 # When True, indexfile is opened with checkambig=True at writing, to
352 # When True, indexfile is opened with checkambig=True at writing, to
353 # avoid file stat ambiguity.
353 # avoid file stat ambiguity.
354 self._checkambig = checkambig
354 self._checkambig = checkambig
355 self._mmaplargeindex = mmaplargeindex
355 self._censorable = censorable
356 self._censorable = censorable
356 # 3-tuple of (node, rev, text) for a raw revision.
357 # 3-tuple of (node, rev, text) for a raw revision.
357 self._revisioncache = None
358 self._revisioncache = None
@@ -406,7 +407,7 b' class revlog(object):'
406 self._compengine = opts['compengine']
407 self._compengine = opts['compengine']
407 if 'maxdeltachainspan' in opts:
408 if 'maxdeltachainspan' in opts:
408 self._maxdeltachainspan = opts['maxdeltachainspan']
409 self._maxdeltachainspan = opts['maxdeltachainspan']
409 if mmaplargeindex and 'mmapindexthreshold' in opts:
410 if self._mmaplargeindex and 'mmapindexthreshold' in opts:
410 mmapindexthreshold = opts['mmapindexthreshold']
411 mmapindexthreshold = opts['mmapindexthreshold']
411 self._sparserevlog = bool(opts.get('sparse-revlog', False))
412 self._sparserevlog = bool(opts.get('sparse-revlog', False))
412 withsparseread = bool(opts.get('with-sparse-read', False))
413 withsparseread = bool(opts.get('with-sparse-read', False))
General Comments 0
You need to be logged in to leave comments. Login now