changeset 2271:1af1b0debd4b stable

template: pass all mapping data to showlist() Otherwise a keyword depending on repo or ctx couldn't be rendered.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 19 Apr 2017 21:12:09 +0900
parents b53343c8d692
children eb47d436cdc3
files hgext3rd/evolve/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Wed Apr 19 21:37:28 2017 +0900
+++ b/hgext3rd/evolve/__init__.py	Wed Apr 19 21:12:09 2017 +0900
@@ -432,9 +432,10 @@
     return ''
 
 @eh.templatekw('troubles')
-def showtroubles(repo, ctx, **args):
+def showtroubles(**args):
     """:troubles: List of strings. Evolution troubles affecting the changeset
     (zero or more of "unstable", "divergent" or "bumped")."""
+    ctx = args['ctx']
     return templatekw.showlist('trouble', ctx.troubles(), plural='troubles',
                                **args)