Mercurial > hg
changeset 40804:bad0053efaf6
py3: listify filter() to call len() on it
Differential Revision: https://phab.mercurial-scm.org/D5354
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 03 Dec 2018 19:42:46 +0300 |
parents | 698477777883 |
children | 01c335afc997 |
files | hgext/remotefilelog/repack.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: