This is an archive of the discontinued Mercurial Phabricator instance.

dirstate: move parent state handling in the dirstatemap
ClosedPublic

Authored by SimonSapin on Sep 28 2021, 3:54 PM.

Details

Summary

This involves dirstatemap data mostly. Moving this one level down will remove
the needs for the dirstatemap to expose some of its internals.

This will help us to simplify more code further.

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.Sep 28 2021, 3:54 PM
Alphare accepted this revision.Sep 29 2021, 4:35 AM
Alphare added a subscriber: Alphare.

I'm not a huge fan of simply copy-pasting the setparents logic, but I see that the next patches make them differ

This revision is now accepted and ready to land.Sep 29 2021, 4:35 AM
This revision was automatically updated to reflect the committed changes.