template: remove compatibility layer for `showobsolete`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 18 Aug 2018 01:02:52 +0200
changeset 3973 1094e56d369a
parent 3972 f715dcea5086
child 3974 fe5fd6509930
template: remove compatibility layer for `showobsolete` The keyword exist in core since 4.2
hgext3rd/evolve/templatekw.py
--- 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):