( )⚙ D12213 rhg: simplify the handling of share-safe config mismatch

This is an archive of the discontinued Mercurial Phabricator instance.

rhg: simplify the handling of share-safe config mismatch
ClosedPublic

Authored by aalekseyev on Feb 21 2022, 2:55 PM.

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

aalekseyev created this revision.Feb 21 2022, 2:55 PM

There is no benefit to fast-pathing the mismatch case, so it's better to keep the code simple.
In particular the code being removed is hard-coding the fact that the default value is abort, which is something we want to change in the hg deployment we use.
Removing this fast-path make configitems.py the only place where the default value is specified.

Unknown Object (User) added a subscriber: Unknown Object (User).Feb 21 2022, 9:56 PM

I adore this article for its well-researched content and great wording 1v1 battle

Alphare added a subscriber: Alphare.EditedFeb 22 2022, 4:27 AM

FYI, we are in a code freeze until ~March 1st, so this will get some attention after this.

That's cool. Thanks.

Alphare accepted this revision.Mar 2 2022, 4:41 AM
This revision is now accepted and ready to land.Mar 2 2022, 4:41 AM