Patchwork D2369: narrowbundle2: replace map() with equivalent list comprehension

login
register
mail settings
Submitter phabricator
Date Feb. 22, 2018, 3:11 a.m.
Message ID <b352e46c22d46c26d73042b01c092009@localhost.localdomain>
Download mbox | patch
Permalink /patch/28225/
State Not Applicable
Headers show

Comments

phabricator - Feb. 22, 2018, 3:11 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG658d694a656e: narrowbundle2: replace map() with equivalent list comprehension (authored by durin42, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D2369?vs=5949&id=5975#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2369?vs=5949&id=5975

REVISION DETAIL
  https://phab.mercurial-scm.org/D2369

AFFECTED FILES
  hgext/narrow/narrowbundle2.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit, indygreg
Cc: indygreg, mercurial-devel

Patch

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 @@ 
     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)