py3: listify filter() to call len() on it
authorPulkit Goyal <pulkit@yandex-team.ru>
Mon, 03 Dec 2018 19:42:46 +0300
changeset 40804 bad0053efaf6
parent 40800 698477777883
child 40805 01c335afc997
py3: listify filter() to call len() on it Differential Revision: https://phab.mercurial-scm.org/D5354
hgext/remotefilelog/repack.py
--- a/hgext/remotefilelog/repack.py	Sun Nov 18 18:35:31 2018 +0900
+++ b/hgext/remotefilelog/repack.py	Mon Dec 03 19:42:46 2018 +0300
@@ -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: