# HG changeset patch # User Martin von Zweigbergk # Date 2019-06-20 17:42:16 # Node ID c7104896ec42cc7b233e0952a3ca1223591f5280 # Parent 8f9cfc8d2ae12b48df9cec916407a0cf7f42d1f4 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 diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -279,8 +279,6 @@ def _changesetforwardcopies(a, b, match) 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