# HG changeset patch # User Durham Goode # Date 1488909371 28800 # Node ID 5a909a8098a12ecd9cdc5381b9d0a6277c5304b1 # Parent 959ebff3505a3e4c996b62b58659c286b7feb9a8 copies: remove use of manifest.matches Convert the existing use of manifest.matches to use the new api. This is part of getting rid of manifest.matches, since it is O(manifest). diff -r 959ebff3505a -r 5a909a8098a1 mercurial/copies.py --- a/mercurial/copies.py Tue Mar 07 09:56:11 2017 -0800 +++ b/mercurial/copies.py Tue Mar 07 09:56:11 2017 -0800 @@ -149,10 +149,7 @@ """ ma = a.manifest() mb = b.manifest() - if match: - ma = ma.matches(match) - mb = mb.matches(match) - return mb.filesnotin(ma) + return mb.filesnotin(ma, match=match) def _forwardcopies(a, b, match=None): '''find {dst@b: src@a} copy mapping where a is an ancestor of b'''