# HG changeset patch # User Yuya Nishihara # Date 1492603929 -32400 # Node ID 1af1b0debd4b2c6e5e4e00f62e51b159d1b32087 # Parent b53343c8d69202928d02efcadb913b7f0c1771c3 template: pass all mapping data to showlist() Otherwise a keyword depending on repo or ctx couldn't be rendered. diff -r b53343c8d692 -r 1af1b0debd4b 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)