[PATCH] hgweb: expose list of per-repo labels to templates

Yuya Nishihara yuya at tcha.org
Sun Jul 3 03:19:18 EDT 2016


On Thu, 30 Jun 2016 19:09:57 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1467338393 25200
> #      Thu Jun 30 18:59:53 2016 -0700
> # Node ID 4b7c13a0b961b3ab838dc6c8a5b127f85df07b36
> # Parent  7dce56174916e09be39c690278942b4f7567b3f6
> hgweb: expose list of per-repo labels to templates
> 
> hgweb currently offers limited functionality for "classifying"
> repositories. This patch aims to change that.
> 
> The web.labels config option list is introduced. It's values
> are exposed to the "index" and "summary" templates. Custom
> templates can use template features like ifcontains() to e.g.
> look for the presence of a specific label and engage specific
> behavior. For example, a site operator may wish to assign a
> "defunct" label to a repository so the repository is prominently
> marked as dead in repository indexes.

I agree this will be useful. Queued, thanks.


More information about the Mercurial-devel mailing list