[PATCH 1 of 2] context: add instabilities() method to basefilectx
Yuya Nishihara
yuya at tcha.org
Sat Nov 25 21:28:30 EST 2017
On Sun, 19 Nov 2017 17:06:33 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6 at dwimlabs.net>
> # Date 1511068734 -28800
> # Sun Nov 19 13:18:54 2017 +0800
> # Node ID 95bfd552561c2bc88284903c2d001df7e2080bfb
> # Parent 7dee8249ba0efc42a60c4523fd9593853ec2eb79
> # EXP-Topic hgweb-more-info
> context: add instabilities() method to basefilectx
> diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py
> --- a/mercurial/hgweb/webutil.py
> +++ b/mercurial/hgweb/webutil.py
> @@ -362,6 +362,7 @@ def commonentry(repo, ctx):
> 'extra': ctx.extra(),
> 'phase': ctx.phasestr(),
> 'obsolete': ctx.obsolete(),
> + 'instabilities': [{"name": i} for i in ctx.instabilities()],
^^^^^^
It's better to call each item an 'instability' for compatibility with the
log template. Can you send a followup?
More information about the Mercurial-devel
mailing list