diff tests/test-hgweb-json.t @ 29471:c4fc33c477da

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. Its 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.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 30 Jun 2016 18:59:53 -0700
parents 59058549a611
children 7fa011555046
line wrap: on
line diff
--- a/tests/test-hgweb-json.t	Tue Jun 21 14:58:49 2016 -0700
+++ b/tests/test-hgweb-json.t	Thu Jun 30 18:59:53 2016 -0700
@@ -848,6 +848,7 @@
         "status": "inactive"
       }
     ],
+    "labels": [],
     "lastchange": [
       0.0,
       0