template: remove compatibility layer for `showobsolete`
The keyword exist in core since 4.2
--- a/hgext3rd/evolve/templatekw.py Sat Aug 18 01:06:30 2018 +0200
+++ b/hgext3rd/evolve/templatekw.py Sat Aug 18 01:02:52 2018 +0200
@@ -26,16 +26,6 @@
### template keywords
# XXX it does not handle troubles well :-/
-if not util.safehasattr(templatekw, 'showobsolete'):
- # hg < 4.2
- @eh.templatekw('obsolete')
- def obsoletekw(repo, ctx, templ, **args):
- """String. Whether the changeset is ``obsolete``.
- """
- if ctx.obsolete():
- return 'obsolete'
- return ''
-
if util.safehasattr(templatekw, 'compatlist'):
@eh.templatekw('troubles', requires=set(['ctx', 'templ']))
def showtroubles(context, mapping):