diff mercurial/hgweb/webutil.py @ 35152:f38c91c74294

hgweb: rename the main attribute of instabilities Let's make "instabilities" list contain items with "instability" key as opposed to "name" key. This way it's more explicit and more consistent with the log command-line template.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 26 Nov 2017 13:29:18 +0800
parents bd2743936b56
children 1fe3c8296cfe
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Thu Nov 23 14:13:14 2017 -0800
+++ b/mercurial/hgweb/webutil.py	Sun Nov 26 13:29:18 2017 +0800
@@ -362,7 +362,7 @@
         'extra': ctx.extra(),
         'phase': ctx.phasestr(),
         'obsolete': ctx.obsolete(),
-        'instabilities': [{"name": i} for i in ctx.instabilities()],
+        'instabilities': [{"instability": i} for i in ctx.instabilities()],
         'branch': nodebranchnodefault(ctx),
         'inbranch': nodeinbranch(repo, ctx),
         'branches': nodebranchdict(repo, ctx),