Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGdadb4db55661: nodemap: fix a typo in error message
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
def persist_nodemap(tr, revlog, pending=False): | def persist_nodemap(tr, revlog, pending=False): | ||||
"""Write nodemap data on disk for a given revlog""" | """Write nodemap data on disk for a given revlog""" | ||||
if getattr(revlog, 'filteredrevs', ()): | if getattr(revlog, 'filteredrevs', ()): | ||||
raise error.ProgrammingError( | raise error.ProgrammingError( | ||||
"cannot persist nodemap of a filtered changelog" | "cannot persist nodemap of a filtered changelog" | ||||
) | ) | ||||
if revlog.nodemap_file is None: | if revlog.nodemap_file is None: | ||||
msg = "calling persist nodemap on a revlog without the feature enableb" | msg = "calling persist nodemap on a revlog without the feature enabled" | ||||
raise error.ProgrammingError(msg) | raise error.ProgrammingError(msg) | ||||
can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental") | can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental") | ||||
ondisk_docket = revlog._nodemap_docket | ondisk_docket = revlog._nodemap_docket | ||||
feed_data = util.safehasattr(revlog.index, "update_nodemap_data") | feed_data = util.safehasattr(revlog.index, "update_nodemap_data") | ||||
use_mmap = revlog.opener.options.get(b"persistent-nodemap.mmap") | use_mmap = revlog.opener.options.get(b"persistent-nodemap.mmap") | ||||
data = None | data = None |