Patchwork D6118: copies: remove dependency on scmutil by directly using match.exact()

login
register
mail settings
Submitter phabricator
Date March 11, 2019, 11:17 p.m.
Message ID <38d4c8b4ae9ba1602fd5c15f4ef9c523@localhost.localdomain>
Download mbox | patch
Permalink /patch/39225/
State Not Applicable
Headers show

Comments

phabricator - March 11, 2019, 11:17 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa791623458ef: copies: remove dependency on scmutil by directly using match.exact() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6118?vs=14467&id=14471

REVISION DETAIL
  https://phab.mercurial-scm.org/D6118

AFFECTED FILES
  mercurial/copies.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -17,7 +17,6 @@ 
     match as matchmod,
     node,
     pathutil,
-    scmutil,
     util,
 )
 from .utils import (
@@ -193,7 +192,7 @@ 
     # this comparison.
     forwardmissingmatch = match
     if b.p1() == a and b.p2().node() == node.nullid:
-        filesmatcher = scmutil.matchfiles(a._repo, b.files())
+        filesmatcher = matchmod.exact(b.files())
         forwardmissingmatch = matchmod.intersectmatchers(match, filesmatcher)
     missing = _computeforwardmissing(a, b, match=forwardmissingmatch)