From patchwork Wed Mar 8 03:22:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02,of,10,V2] copies: remove use of manifest.matches From: Durham Goode X-Patchwork-Id: 18980 Message-Id: To: Date: Tue, 7 Mar 2017 19:22:34 -0800 # HG changeset patch # User Durham Goode # Date 1488909371 28800 # Tue Mar 07 09:56:11 2017 -0800 # Node ID f70310209acbbcb4cf7cae7c38d94e15c09c1ace # Parent 5ede3fa3bae6e964b4bce8b36681d203c05e94f7 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 --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -149,10 +149,7 @@ def _computeforwardmissing(a, b, match=N """ 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'''