copies: remove a redundant matcher filtering in _changesetforwardcopies()
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 20 Jun 2019 10:42:16 -0700
changeset 42518 c7104896ec42
parent 42517 8f9cfc8d2ae1
child 42519 907cef396635
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
mercurial/copies.py
--- 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