[PATCH] show: use labelcset() template alias for work (and stack) views
Yuya Nishihara
yuya at tcha.org
Thu Oct 19 10:10:35 EDT 2017
On Tue, 17 Oct 2017 21:01:48 +0200, Denis Laxalde wrote:
> # HG changeset patch
> # User Denis Laxalde <denis at laxalde.org>
> # Date 1508264743 -7200
> # Tue Oct 17 20:25:43 2017 +0200
> # Node ID 9af9aa26a601cf26aca9320d0384857fe09fa28b
> # Parent 68e0bcb903572cb3641c1b1ac11bdcf47d4ff5ac
> # EXP-Topic show-obs-info
> show: use labelcset() template alias for work (and stack) views
>
> By reusing labelcset() template alias from map-cmdline.default we can now
> display obsolescence information in `hg show work/stack`.
>
> diff --git a/mercurial/templates/map-cmdline.show b/mercurial/templates/map-cmdline.show
> --- a/mercurial/templates/map-cmdline.show
> +++ b/mercurial/templates/map-cmdline.show
> @@ -1,8 +1,8 @@
> # TODO there are a few deficiencies in this file:
> # * The "namespace" of the labels needs to be worked out. We currently
> # piggyback on existing values so color works.
> -# * Obsolescence isn't considered for node labels. See _cset_labels in
> -# map-cmdline.default.
> +
> +%include map-cmdline.default
As a side effect, 'hg log -Tshow' becomes an alias for -Tdefault. Perhaps,
map-cmdline.show should be merged into map-cmdline.default.
More information about the Mercurial-devel
mailing list