revlog: inline opener options logic into _loadindex()

Authored by indygreg.

Description

revlog: inline opener options logic into _loadindex()

We always call _loadindex() during init. But we also call
_loadindex() as part of censorrevision(). Before, when reloading
the index during censorrevision(), we would lose the configured
mmapindexthreshold setting from the opener. By inlining the
logic in _loadindex(), we ensure that opener options are always
respected when loading the index.

Differential Revision: https://phab.mercurial-scm.org/D5563

Details

Committed
indygregJan 9 2019, 7:18 PM
Differential Revision
D5563: revlog: inline opener options logic into _loadindex()
Parents
rHGd0de4fdd87aa: revlog: store mmaplargeindex as an instance attribute
Branches
Unknown
Tags
Unknown