compat: clarify when some conditional are used
The middle condition was an intermediate state that never existed into a
release. We can safely drop it.
--- a/hgext3rd/evolve/templatekw.py Mon Nov 19 02:20:44 2018 +0000
+++ b/hgext3rd/evolve/templatekw.py Mon Nov 19 02:25:37 2018 +0000
@@ -175,24 +175,7 @@
return "\n".join(lines)
-if util.safehasattr(templatekw, 'obsfateverb'):
- # Individuals fragments are available in core
- pass
-elif util.safehasattr(templatekw, 'compatlist'):
- @eh.templatekw('obsfatedata', requires=set(['ctx', 'templ']))
- def showobsfatedata(context, mapping):
- ctx = context.resource(mapping, 'ctx')
- repo = ctx.repo()
- values = obsfatedata(repo, ctx)
-
- if values is None:
- return templatekw.compatlist(context, mapping, "obsfatedata", [])
- args = mapping.copy()
- args.pop('ctx')
- args['templ'] = context
- return _showobsfatedata(repo, ctx, values, **args)
-else:
- # pre hg-4.6
+if not util.safehasattr(templatekw, 'obsfateverb'): # <= hg-4.5
@eh.templatekw("obsfatedata")
def showobsfatedata(repo, ctx, **args):
# Get the needed obsfate data