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

login
register
mail settings
Submitter phabricator
Date Feb. 6, 2020, 9:56 p.m.
Message ID <997a19e4c1517130ececf11a7f252153@localhost.localdomain>
Download mbox | patch
Permalink /patch/45002/
State Not Applicable
Headers show

Comments

phabricator - Feb. 6, 2020, 9:56 p.m.
durin42 updated this revision to Diff 19966.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8083?vs=19952&id=19966

BRANCH
  default

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

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

AFFECTED FILES
  mercurial/archival.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: martinvonz, 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()