Show More
@@ -10,6 +10,7 b' from __future__ import absolute_import' | |||||
10 | import heapq |
|
10 | import heapq | |
11 |
|
11 | |||
12 | from . import ( |
|
12 | from . import ( | |
|
13 | match as matchmod, | |||
13 | node, |
|
14 | node, | |
14 | pathutil, |
|
15 | pathutil, | |
15 | scmutil, |
|
16 | scmutil, | |
@@ -182,8 +183,9 b' def _forwardcopies(a, b, match=None):' | |||||
182 | # optimization, since the ctx.files() for a merge commit is not correct for |
|
183 | # optimization, since the ctx.files() for a merge commit is not correct for | |
183 | # this comparison. |
|
184 | # this comparison. | |
184 | forwardmissingmatch = match |
|
185 | forwardmissingmatch = match | |
185 |
if |
|
186 | if b.p1() == a and b.p2().node() == node.nullid: | |
186 |
f |
|
187 | filesmatcher = scmutil.matchfiles(a._repo, b.files()) | |
|
188 | forwardmissingmatch = matchmod.intersectmatchers(match, filesmatcher) | |||
187 | missing = _computeforwardmissing(a, b, match=forwardmissingmatch) |
|
189 | missing = _computeforwardmissing(a, b, match=forwardmissingmatch) | |
188 |
|
190 | |||
189 | ancestrycontext = a._repo.changelog.ancestors([b.rev()], inclusive=True) |
|
191 | ancestrycontext = a._repo.changelog.ancestors([b.rev()], inclusive=True) |
General Comments 0
You need to be logged in to leave comments.
Login now