template: pass all mapping data to showlist() stable
authorYuya Nishihara <yuya@tcha.org>
Wed, 19 Apr 2017 21:12:09 +0900
branchstable
changeset 2271 1af1b0debd4b
parent 2270 b53343c8d692
child 2272 eb47d436cdc3
template: pass all mapping data to showlist() Otherwise a keyword depending on repo or ctx couldn't be rendered.
hgext3rd/evolve/__init__.py
--- 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)