D5178: archive: use manifest.matches() to simplify and speed up matching

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Mon Oct 22 15:16:07 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8c124d10ae02: archive: use manifest.matches() to simplify and speed up matching (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5178?vs=12292&id=12313

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

AFFECTED FILES
  mercurial/archival.py

CHANGE DETAILS

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



To: martinvonz, #hg-reviewers
Cc: khanchi97, mercurial-devel


More information about the Mercurial-devel mailing list