Show More
@@ -52,7 +52,7 def setup(): | |||
|
52 | 52 | getattr(self, '_narrow_matcher', None)) |
|
53 | 53 | if matcher is not None: |
|
54 | 54 | narrowmatch = matcher() |
|
55 |
changedfiles = |
|
|
55 | changedfiles = [f for f in changedfiles if narrowmatch(f)] | |
|
56 | 56 | if getattr(self, 'is_shallow', False): |
|
57 | 57 | # See comment in generate() for why this sadness is a thing. |
|
58 | 58 | mfdicts = self._mfdicts |
@@ -19,7 +19,7 def setup(repo): | |||
|
19 | 19 | missing = orig(a, b, match) |
|
20 | 20 | if util.safehasattr(repo, 'narrowmatch'): |
|
21 | 21 | narrowmatch = repo.narrowmatch() |
|
22 |
missing = |
|
|
22 | missing = [f for f in missing if narrowmatch(f)] | |
|
23 | 23 | return missing |
|
24 | 24 | |
|
25 | 25 | def _checkcopies(orig, srcctx, dstctx, f, base, tca, remotebase, limit, |
@@ -31,9 +31,9 def setup(repo): | |||
|
31 | 31 | copy, getfilectx, *args, **kwargs): |
|
32 | 32 | if util.safehasattr(repo, 'narrowmatch'): |
|
33 | 33 | narrowmatch = repo.narrowmatch() |
|
34 |
modified = |
|
|
35 |
added = |
|
|
36 |
removed = |
|
|
34 | modified = [f for f in modified if narrowmatch(f)] | |
|
35 | added = [f for f in added if narrowmatch(f)] | |
|
36 | removed = [f for f in removed if narrowmatch(f)] | |
|
37 | 37 | copy = {k: v for k, v in copy.iteritems() if narrowmatch(k)} |
|
38 | 38 | return orig(repo, revs, ctx1, ctx2, modified, added, removed, copy, |
|
39 | 39 | getfilectx, *args, **kwargs) |
General Comments 0
You need to be logged in to leave comments.
Login now