py3: listify filter() to call len() on it
Differential Revision: https://phab.mercurial-scm.org/D5354
--- 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: