D5605: remotefilelog: use list comprehension instead of filter for py3 portability
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 16 12:21:44 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG60b3edccf2f7: remotefilelog: use list comprehension instead of filter for py3 portability (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5605?vs=13265&id=13284
REVISION DETAIL
https://phab.mercurial-scm.org/D5605
AFFECTED FILES
hgext/remotefilelog/repack.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/repack.py b/hgext/remotefilelog/repack.py
--- a/hgext/remotefilelog/repack.py
+++ b/hgext/remotefilelog/repack.py
@@ -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
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list