##// END OF EJS Templates
revset: use manifest.matches in _follow revset...
Durham Goode -
r28008:86c4cbda default
parent child Browse files
Show More
@@ -1086,13 +1086,14 b' def _follow(repo, subset, x, name, follo'
1086 matcher = matchmod.match(repo.root, repo.getcwd(), [x],
1086 matcher = matchmod.match(repo.root, repo.getcwd(), [x],
1087 ctx=repo[None], default='path')
1087 ctx=repo[None], default='path')
1088
1088
1089 files = c.manifest().walk(matcher)
1090
1089 s = set()
1091 s = set()
1090 for fname in c:
1092 for fname in files:
1091 if matcher(fname):
1093 fctx = c[fname]
1092 fctx = c[fname]
1094 s = s.union(set(c.rev() for c in fctx.ancestors(followfirst)))
1093 s = s.union(set(c.rev() for c in fctx.ancestors(followfirst)))
1095 # include the revision responsible for the most recent version
1094 # include the revision responsible for the most recent version
1096 s.add(fctx.introrev())
1095 s.add(fctx.introrev())
1096 else:
1097 else:
1097 s = _revancestors(repo, baseset([c.rev()]), followfirst)
1098 s = _revancestors(repo, baseset([c.rev()]), followfirst)
1098
1099
General Comments 0
You need to be logged in to leave comments. Login now