Mercurial > evolve
changeset 3644:4eea4a3ef11f
templatekw: fix templatedata for 46
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 04 Apr 2018 16:29:48 +0200 |
parents | 01108d67523f |
children | a2d06eba843f |
files | hgext3rd/evolve/templatekw.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/templatekw.py Sat Mar 31 11:53:09 2018 +0200 +++ b/hgext3rd/evolve/templatekw.py Wed Apr 04 16:29:48 2018 +0200 @@ -312,7 +312,12 @@ def fmt(d): nargs = args.copy() nargs.update(d[name]) - return args['templ'](name, **nargs) + templ = args['templ'] + # HG 4.6 + if hasattr(templ, "generate"): + return templ.generate(name, nargs) + else: + return args['templ'](name, **nargs) # Generate a good enough string representation using templater gen = []