( )⚙ D5076 help: allow commands to be hidden

This is an archive of the discontinued Mercurial Phabricator instance.

help: allow commands to be hidden
ClosedPublic

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

Details

Summary

This is useful in enterprise environments where some workflows are
discouraged.

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 12125.Oct 14 2018, 6:32 AM
yuja added a subscriber: yuja.Oct 14 2018, 11:31 AM

+ if ui.configbool('help', 'hide.%s' % cmd):
+ return True

Nit: "hidden" or "hidden-command" seems better.

rdamazio updated this revision to Diff 12254.Oct 18 2018, 11:25 PM
In D5076#76405, @yuja wrote:

+ if ui.configbool('help', 'hide.%s' % cmd):
+ return True

Nit: "hidden" or "hidden-command" seems better.

Done.

This revision was automatically updated to reflect the committed changes.