py3: fix map() use in templatekw.showpredecessors()
Now it matters since hybrid.tobool() no longer consumes the generator.
--- a/mercurial/templatekw.py Thu Jun 14 20:09:54 2018 +0900
+++ b/mercurial/templatekw.py Thu Jun 14 20:29:27 2018 +0900
@@ -567,7 +567,7 @@
repo = context.resource(mapping, 'repo')
ctx = context.resource(mapping, 'ctx')
predecessors = sorted(obsutil.closestpredecessors(repo, ctx.node()))
- predecessors = map(hex, predecessors)
+ predecessors = pycompat.maplist(hex, predecessors)
return _hybrid(None, predecessors,
lambda x: {'ctx': repo[x]},