Mercurial > hg
diff hgext/remotefilelog/repack.py @ 41255:60b3edccf2f7
remotefilelog: use list comprehension instead of filter for py3 portability
Differential Revision: https://phab.mercurial-scm.org/D5605
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 16 Jan 2019 11:00:10 -0500 |
parents | b80915b52476 |
children | 876494fd967d |
line wrap: on
line diff
--- a/hgext/remotefilelog/repack.py Wed Jan 16 10:59:32 2019 -0500 +++ b/hgext/remotefilelog/repack.py Wed Jan 16 11:00:10 2019 -0500 @@ -481,7 +481,7 @@ else: parent = orphans[i - 1] deltabases[node] = (parent, deltabases[parent][1] + 1) - nodes = filter(lambda node: node not in orphans, nodes) + nodes = [n for n in nodes if n not in orphans] nodes += orphans return nodes