[PATCH 2 of 2] commands: add template support for config

Yuya Nishihara yuya at tcha.org
Tue Sep 20 09:32:09 EDT 2016


On Mon, 19 Sep 2016 09:14:42 -0500, Mathias De Maré wrote:
> # HG changeset patch
> # User Mathias De Maré <mathias.demare at gmail.com>
> # Date 1472447235 -7200
> #      Mon Aug 29 07:07:15 2016 +0200
> # Node ID c037f0fbd6374b5855373a82056015289910fe69
> # Parent  084ca55ce77a5fe77bc93db26346cc71211a0070
> commands: add template support for config

Queued this, thanks.

>   Note: I'm not quite sure about the best approach to handling
>   the 'print the full config' case.
>   For me, it printed the 'ui.promptecho' key at the end.
>   I went with globs there as that at least tests the json display reliably.

Maybe we can switch HGRCPATH to get cleaner result? IIRC, the order of
ui.walkconfig() is deterministic.


More information about the Mercurial-devel mailing list