Patchwork D5605: remotefilelog: use list comprehension instead of filter for py3 portability

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:21 p.m.
Message ID <f9b54ceeed3302831b587ffe832a3476@localhost.localdomain>
Download mbox | patch
Permalink /patch/37823/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:21 p.m.
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




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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