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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Feb 21 22:11:32 EST 2018


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

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)



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


More information about the Mercurial-devel mailing list