D5354: py3: listify filter() to call len() on it

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Dec 3 15:04:26 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbda0cb4839fb: py3: listify filter() to call len() on it (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5354?vs=12674&id=12679

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

AFFECTED FILES
  hgext/remotefilelog/repack.py

CHANGE DETAILS

diff --git a/hgext/remotefilelog/repack.py b/hgext/remotefilelog/repack.py
--- a/hgext/remotefilelog/repack.py
+++ b/hgext/remotefilelog/repack.py
@@ -526,7 +526,8 @@
 
             # Filter orderednodes to just the nodes we want to serialize (it
             # currently also has the edge nodes' ancestors).
-            orderednodes = filter(lambda node: node in nodes, orderednodes)
+            orderednodes = list(filter(lambda node: node in nodes,
+                                orderednodes))
 
             # Garbage collect old nodes:
             if self.garbagecollect:



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


More information about the Mercurial-devel mailing list