( )⚙ D11506 dirstate: use a new `drop_merge_data` in `setparent`

This is an archive of the discontinued Mercurial Phabricator instance.

dirstate: use a new `drop_merge_data` in `setparent`
ClosedPublic

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

Details

Summary

What is happening in this setparent loop is that we remove all merge
related information when the dirstate is moved out of a merge situation.

So instead of shuffling state to get them where we want, we simply add a method
on the DirstateItem to do drop the information we want dropped.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Sep 28 2021, 3:54 PM
Alphare requested changes to this revision.Sep 29 2021, 4:45 AM
Alphare added a subscriber: Alphare.

Please do a typo pass on this, it's a bit hard to read. The change looks good otherwise

This revision now requires changes to proceed.Sep 29 2021, 4:45 AM
marmoute edited the summary of this revision. (Show Details)Sep 29 2021, 5:04 AM
Alphare accepted this revision.Sep 30 2021, 9:45 AM
This revision is now accepted and ready to land.Sep 30 2021, 9:45 AM
This revision was automatically updated to reflect the committed changes.