changeset 42525:c7104896ec42

copies: remove a redundant matcher filtering in _changesetforwardcopies() We filter before pushing items on the queue, so we don't need to filter after popping. Differential Revision: https://phab.mercurial-scm.org/D6560
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 20 Jun 2019 10:42:16 -0700
parents 8f9cfc8d2ae1
children 907cef396635
files mercurial/copies.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/copies.py	Thu Jun 20 10:51:23 2019 -0700
+++ b/mercurial/copies.py	Thu Jun 20 10:42:16 2019 -0700
@@ -279,8 +279,6 @@
             copies = {}
             allcopies = set(copies1) | set(copies2)
             for dst in allcopies:
-                if not alwaysmatch and not match(dst):
-                    continue
                 # Unlike when copies are stored in the filelog, we consider
                 # it a copy even if the destination already existed on the
                 # other branch. It's simply too expensive to check if the