copies: remove use of manifest.matches
authorDurham Goode <durham@fb.com>
Tue, 07 Mar 2017 09:56:11 -0800
changeset 31256 5a909a8098a1
parent 31255 959ebff3505a
child 31257 11831d755b51
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).
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'''