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.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGe3cfe0702eac: revlog: inline opener options logic into _loadindex()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.