This is an archive of the discontinued Mercurial Phabricator instance.

narrow: introduce a config option to check if narrow is enabled or not
ClosedPublic

Authored by pulkit on Oct 5 2018, 4:17 PM.

Details

Summary

This patch introduces a new config option experimental.narrow which is set to
False by default and set to True by the narrow extension.

While moving narrow related logic into core, we need to know at places whether
narrow extension is enabled or not. Checking the list of extension enabled is
one solution but once narrow is inbuilt, we will definitely want a config option
to check whether narrow is turned on or not.

So this patch introduces a config option, which will evolve to the main point to
turn narrow capability on and off once all the narrow is in core.

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.