Mercurial > hg
changeset 44284:e786d69c665d
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 06 Feb 2020 16:55:39 -0500 |
parents | 934a79697c36 |
children | 63d84c18247a |
files | mercurial/archival.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/archival.py Fri Jan 24 11:10:07 2020 +0100 +++ b/mercurial/archival.py Thu Feb 06 16:55:39 2020 -0500 @@ -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()