D5187: help: describe what ui.tweakdefaults changes, concretely
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Wed Oct 24 11:45:55 UTC 2018
yuja added a comment.
> + ui,
Nit: `ui as uimod` per test-check-code.t.
> @@ -436,6 +437,11 @@
>
> addtopicsymbols('templates', '.. functionsmarker', templatefuncs.funcs)
> addtopicsymbols('hgweb', '.. webcommandsmarker', webcommands.commands,
> dedent=True)
>
> +def docplaceholder():
> + pass
> +docplaceholder.__doc__ = ui.tweakrc
> +addtopicsymbols('config', '.. tweakdefaultsmarker', {'': docplaceholder},
> + dedent=True)
Alternatively, we can register a dedicated loader by `addtopichook()`. Only
thing we'll have to do is to replace a placeholder with indented tweakrc.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5187
To: valentin.gatienbaron, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list