# HG changeset patch # User Pierre-Yves David # Date 1524138057 -7200 # Node ID 36714eeb51d10a642f9545dfa2c6b67acfae7bcb # Parent bf000d1a525f8fa06cf75a389e4cf613f7112d0b template: drop compatibility layer Support has been dropped for 4.1 and 4.2 diff -r bf000d1a525f -r 36714eeb51d1 hgext3rd/evolve/templatekw.py --- a/hgext3rd/evolve/templatekw.py Thu Apr 19 13:35:31 2018 +0200 +++ b/hgext3rd/evolve/templatekw.py Thu Apr 19 13:40:57 2018 +0200 @@ -47,13 +47,8 @@ """List of strings. Evolution troubles affecting the changeset (zero or more of "unstable", "divergent" or "bumped").""" ctx = args['ctx'] - try: - # specify plural= explicitly to trigger TypeError on hg < 4.2 - return templatekw.showlist('trouble', ctx.instabilities(), args, - plural='troubles') - except TypeError: - return templatekw.showlist('trouble', ctx.instabilities(), plural='troubles', - **args) + return templatekw.showlist('trouble', ctx.instabilities(), args, + plural='troubles') if util.safehasattr(templatekw, 'showpredecessors'): templatekw.keywords["precursors"] = templatekw.showpredecessors