This is an archive of the discontinued Mercurial Phabricator instance.

config: use a new `alter` method in `fixconfig`
ClosedPublic

Authored by marmoute on Jan 29 2021, 8:39 PM.

Details

Summary

The set function is doing various work related to metadata (eg: the source,
later the level). However the fixconfig call only updating some values
according to standard processing, not changing any of the related metadata. So
we introduce a new method and use it there.

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

marmoute created this revision.Jan 29 2021, 8:39 PM
Alphare added a subscriber: Alphare.Feb 8 2021, 5:08 AM

I feel like the docstring is a bit short, maybe some of the commit message can find its way in there.

Alphare accepted this revision.Feb 8 2021, 5:08 AM

... but it's not really reason enough to not accept it since the code is simple enough.

I updated the docstring a bit.

baymax updated this revision to Diff 25516.

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

Alphare accepted this revision.Feb 10 2021, 4:39 AM
baymax updated this revision to Diff 25573.Feb 11 2021, 1:46 PM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

pulkit accepted this revision.Mar 4 2021, 6:25 AM
This revision is now accepted and ready to land.Mar 4 2021, 6:25 AM
This revision was automatically updated to reflect the committed changes.