changeset 37916:34f259a1c153

hgweb: wrap {instabilities} by hybridlist() This is a list of simple values, which can be a hybrid list.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 03 Apr 2018 22:58:33 +0900
parents 3dc4045db164
children c6904da6ab15
files mercurial/hgweb/webutil.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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),