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

login
register
mail settings
Submitter phabricator
Date Dec. 3, 2018, 8:04 p.m.
Message ID <ba496857ac96d7cf9880941833fcfec9@localhost.localdomain>
Download mbox | patch
Permalink /patch/36928/
State Not Applicable
Headers show

Comments

phabricator - Dec. 3, 2018, 8:04 p.m.
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




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

Patch

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: