Mercurial > hg
comparison hgext/narrow/narrowbundle2.py @ 36349:658d694a656e
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 21 Feb 2018 19:11:11 -0800 |
parents | f3b9377d6aea |
children | 0d5eaa97676b |
comparison
equal
deleted
inserted
replaced
36348:f3b9377d6aea | 36349:658d694a656e |
---|---|
121 'roots: %d %d %d' % (head, r1, r2, r3)) | 121 'roots: %d %d %d' % (head, r1, r2, r3)) |
122 | 122 |
123 missing = list(cl.findmissingrevs(common=commonrevs, heads=headsrevs)) | 123 missing = list(cl.findmissingrevs(common=commonrevs, heads=headsrevs)) |
124 visit = reversed(missing) | 124 visit = reversed(missing) |
125 relevant_nodes = set() | 125 relevant_nodes = set() |
126 visitnodes = map(cl.node, missing) | 126 visitnodes = [cl.node(m) for m in missing] |
127 required = set(headsrevs) | known | 127 required = set(headsrevs) | known |
128 for rev in visit: | 128 for rev in visit: |
129 clrev = cl.changelogrevision(rev) | 129 clrev = cl.changelogrevision(rev) |
130 ps = cldag.parents(rev) | 130 ps = cldag.parents(rev) |
131 if depth is not None: | 131 if depth is not None: |