# HG changeset patch # User Augie Fackler # Date 2018-02-22 03:11:11 # Node ID 658d694a656e7d3a0c3d8131d7e3255740e283c9 # Parent f3b9377d6aea77b82f03490757cd6a2a715d6f1b narrowbundle2: replace map() with equivalent list comprehension The result of this gets used as a list in core code, so the generator returned by map() on Python 3 is a problem. Differential Revision: https://phab.mercurial-scm.org/D2369 diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py +++ b/hgext/narrow/narrowbundle2.py @@ -123,7 +123,7 @@ def _computeellipsis(repo, common, heads missing = list(cl.findmissingrevs(common=commonrevs, heads=headsrevs)) visit = reversed(missing) relevant_nodes = set() - visitnodes = map(cl.node, missing) + visitnodes = [cl.node(m) for m in missing] required = set(headsrevs) | known for rev in visit: clrev = cl.changelogrevision(rev)