Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG842f2372ced6: rhg: Don’t attempt to read persistent nodemap without .hg/requires opt-in
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.
Event Timeline
rust/hg-core/src/revlog/nodemap_docket.rs | ||
---|---|---|
47 | IIRC, the python code raises an error in this case. |
rust/hg-core/src/revlog/nodemap_docket.rs | ||
---|---|---|
47 | I what case do you mean? This Rust code looks equivalent to me to the Python code here https://www.mercurial-scm.org/repo/hg/file/5.7/mercurial/revlog.py#l450 (Callers set persistentnodemap to opener.options.get(b'persistent-nodemap', False), which in turn is set based on if requirementsmod.NODEMAP_REQUIREMENT in requirements.) |
IIRC, the python code raises an error in this case.