This is an archive of the discontinued Mercurial Phabricator instance.

update: use context manager for config override (API)
ClosedPublic

Authored by martinvonz on Jun 14 2018, 7:32 PM.

Details

Summary

Note that update wasn't resetting the value before, so any extensions
that called commands.update() and relied on ui.forcemerge being set
after it returned would now have to set it themselves.

(There technically a small API change in all of the patches in this
series, I believe: If extensions relied on the methods to *clear*
ui.forcemerge, then they would have to do that themselves now, because
ui.configoverride() actually restores the previous config, it doesn't
just clear it like these functions did before.)

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Jun 14 2018, 7:32 PM
This revision was automatically updated to reflect the committed changes.