This is an archive of the discontinued Mercurial Phabricator instance.

ui: add a "config_default" method
ClosedPublic

Authored by marmoute on Jan 13 2021, 11:05 PM.

Details

Summary

This allow code to access the expected value for a config. This is useful in the
context of dynamic default value, and short term it will be useful to write
dynamically "correct" code.

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 13 2021, 11:05 PM
Alphare accepted this revision.Jan 15 2021, 5:51 AM
Alphare added a subscriber: Alphare.

Interesting that it doesn't exist already!

baymax updated this revision to Diff 24891.Jan 15 2021, 6:59 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.