# HG changeset patch # User Augie Fackler # Date 2020-02-06 21:55:39 # Node ID e786d69c665d77d0d360d3ae7a1edc01e0e6f0fd # Parent 934a79697c363e4e83e7cf4786ecd5c2ec7749a8 archival: use walk() instead of matches() on manifest All we care about is the filepaths, so this avoids a pointless copy of the manifest that we only used to extract matching filenames. Differential Revision: https://phab.mercurial-scm.org/D8090 diff --git a/mercurial/archival.py b/mercurial/archival.py --- a/mercurial/archival.py +++ b/mercurial/archival.py @@ -355,7 +355,7 @@ def archive( 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()