hgweb: wrap {instabilities} by hybridlist()
authorYuya Nishihara <yuya@tcha.org>
Tue, 03 Apr 2018 22:58:33 +0900
changeset 37916 34f259a1c153
parent 37915 3dc4045db164
child 37917 c6904da6ab15
hgweb: wrap {instabilities} by hybridlist() This is a list of simple values, which can be a hybrid list.
mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py	Tue Apr 03 22:55:33 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Tue Apr 03 22:58:33 2018 +0900
@@ -423,7 +423,8 @@
         'phase': ctx.phasestr(),
         'obsolete': ctx.obsolete(),
         'succsandmarkers': succsandmarkers,
-        'instabilities': [{"instability": i} for i in ctx.instabilities()],
+        'instabilities': templateutil.hybridlist(ctx.instabilities(),
+                                                 name='instability'),
         'whyunstable': whyunstable,
         'branch': nodebranchnodefault(ctx),
         'inbranch': nodeinbranch(repo, ctx),