Mercurial > evolve
changeset 3973: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 |
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 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):