changeset 4078:1094e56d369a

template: remove compatibility layer for `showobsolete` The keyword exist in core since 4.2
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 18 Aug 2018 01:02:52 +0200 (2018-08-17)
parents f715dcea5086
children fe5fd6509930
files hgext3rd/evolve/templatekw.py
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/templatekw.py
+++ b/hgext3rd/evolve/templatekw.py
@@ -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):