This is an archive of the discontinued Mercurial Phabricator instance.

help: allow hiding of help topics
ClosedPublic

Authored by rdamazio on Oct 13 2018, 8:44 AM.

Details

Summary

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

rdamazio created this revision.Oct 13 2018, 8:44 AM
rdamazio updated this revision to Diff 12126.Oct 14 2018, 6:32 AM
yuja added a subscriber: yuja.Oct 14 2018, 11:30 AM

+def filtertopic(ui, topic):
+ return ui.configbool('help', 'hide.%s' % topic, False)

Maybe we need a separate namespace (e.g. help.hidden-topic.%s)?

rdamazio updated this revision to Diff 12255.Oct 18 2018, 11:25 PM
In D5077#76403, @yuja wrote:

+def filtertopic(ui, topic):
+ return ui.configbool('help', 'hide.%s' % topic, False)

Maybe we need a separate namespace (e.g. help.hidden-topic.%s)?

Done.

This revision was automatically updated to reflect the committed changes.