# HG changeset patch # User Yuya Nishihara # Date 2018-06-14 11:29:27 # Node ID 523f64466a05436b5621f471897f948ba1e0a5ac # Parent 1445b556e9d2489430c21f7a3cbbbd89e72d23c3 py3: fix map() use in templatekw.showpredecessors() Now it matters since hybrid.tobool() no longer consumes the generator. diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -567,7 +567,7 @@ def showpredecessors(context, mapping): 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]},