Patchwork D8090: archival: use walk() instead of matches() on manifest

login
register
mail settings
Submitter phabricator
Date Feb. 7, 2020, 9:38 p.m.
Message ID <d2109a779ec9687e5730af82776e718c@localhost.localdomain>
Download mbox | patch
Permalink /patch/45035/
State Not Applicable
Headers show

Comments

phabricator - Feb. 7, 2020, 9:38 p.m.
Closed by commit rHG3e6ac7ce1e2c: archival: use walk() instead of matches() on manifest (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8090?vs=19967&id=20003

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8090/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8090

AFFECTED FILES
  mercurial/archival.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/archival.py b/mercurial/archival.py
--- a/mercurial/archival.py
+++ b/mercurial/archival.py
@@ -355,7 +355,7 @@ 
         if match(name):
             write(name, 0o644, False, lambda: buildmetadata(ctx))
 
-    files = [f for f in ctx.manifest().matches(match)]
+    files = list(ctx.manifest().walk(match))
     total = len(files)
     if total:
         files.sort()