# HG changeset patch # User Anton Shestakov # Date 1511674158 -28800 # Node ID f38c91c7429458763f85c0ab6dd87727636417d9 # Parent 8287df8b7be545fdafa22b771012ac65f6264d12 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. diff -r 8287df8b7be5 -r f38c91c74294 mercurial/hgweb/webutil.py --- 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), diff -r 8287df8b7be5 -r f38c91c74294 mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map Thu Nov 23 14:13:14 2017 -0800 +++ b/mercurial/templates/gitweb/map Sun Nov 26 13:29:18 2017 +0800 @@ -264,7 +264,7 @@ graph = graph.tmpl phasetag = '{ifeq(phase, 'public', '', '{phase|escape} ')}' obsoletetag = '{if(obsolete, 'obsolete ')}' -instabilitytag = '{name|escape} ' +instabilitytag = '{instability|escape} ' tagtag = '{name|escape} ' branchtag = '{name|escape} ' inbranchtag = '{name|escape} ' diff -r 8287df8b7be5 -r f38c91c74294 mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map Thu Nov 23 14:13:14 2017 -0800 +++ b/mercurial/templates/monoblue/map Sun Nov 26 13:29:18 2017 +0800 @@ -223,7 +223,7 @@ shortlog = shortlog.tmpl phasetag = '{ifeq(phase, 'public', '', '{phase|escape} ')}' obsoletetag = '{if(obsolete, 'obsolete ')}' -instabilitytag = '{name|escape} ' +instabilitytag = '{instability|escape} ' tagtag = '{name|escape} ' branchtag = '{name|escape} ' inbranchtag = '{name|escape} ' diff -r 8287df8b7be5 -r f38c91c74294 mercurial/templates/paper/map --- a/mercurial/templates/paper/map Thu Nov 23 14:13:14 2017 -0800 +++ b/mercurial/templates/paper/map Sun Nov 26 13:29:18 2017 +0800 @@ -200,7 +200,7 @@ ' phasetag = '{ifeq(phase, 'public', '', '{phase|escape} ')}' obsoletetag = '{if(obsolete, 'obsolete ')}' -instabilitytag = '{name|escape} ' +instabilitytag = '{instability|escape} ' changelogtag = '{name|escape} ' changesettag = '{tag|escape} ' changesetbookmark = '{bookmark|escape} ' diff -r 8287df8b7be5 -r f38c91c74294 mercurial/templates/spartan/changelogentry.tmpl --- a/mercurial/templates/spartan/changelogentry.tmpl Thu Nov 23 14:13:14 2017 -0800 +++ b/mercurial/templates/spartan/changelogentry.tmpl Sun Nov 26 13:29:18 2017 +0800 @@ -28,7 +28,7 @@ ')} {ifeq(count(instabilities), '0', '', ' instabilities: - {instabilities%"{name} "|escape} + {instabilities%"{instability} "|escape} ')} files: diff -r 8287df8b7be5 -r f38c91c74294 mercurial/templates/spartan/changeset.tmpl --- a/mercurial/templates/spartan/changeset.tmpl Thu Nov 23 14:13:14 2017 -0800 +++ b/mercurial/templates/spartan/changeset.tmpl Sun Nov 26 13:29:18 2017 +0800 @@ -43,7 +43,7 @@ ')} {ifeq(count(instabilities), '0', '', ' instabilities: - {instabilities%"{name} "|escape} + {instabilities%"{instability} "|escape} ')} files: