D6118: copies: remove dependency on scmutil by directly using match.exact()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Mar 11 19:17:36 EDT 2019
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
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)
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list