D5187: help: describe what ui.tweakdefaults changes, concretely

Yuya Nishihara yuya at tcha.org
Wed Oct 24 07:42:42 EDT 2018


> +    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.


More information about the Mercurial-devel mailing list