This is an archive of the discontinued Mercurial Phabricator instance.

rhg: Add lazy/cached dirstate data file ID parsing on Repo
ClosedPublic

Authored by SimonSapin on Dec 2 2021, 11:48 AM.

Details

Summary

The dirstate_parents, dirstate_data_file_uuid, and dirstate_map members
of Repo can be access in any order and the .hg/dirstate file should only
be opened once.

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

SimonSapin created this revision.Dec 2 2021, 11:48 AM
Alphare accepted this revision.Dec 3 2021, 6:19 AM
This revision is now accepted and ready to land.Dec 3 2021, 6:19 AM
SimonSapin updated this revision to Diff 31319.Dec 6 2021, 5:03 AM