##// END OF EJS Templates
revset: use manifest.matches in _follow revset...
Durham Goode -
r28008:86c4cbda default
parent child Browse files
Show More
@@ -1086,9 +1086,10 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):
1092 fctx = c[fname]
1093 fctx = c[fname]
1093 s = s.union(set(c.rev() for c in fctx.ancestors(followfirst)))
1094 s = s.union(set(c.rev() for c in fctx.ancestors(followfirst)))
1094 # include the revision responsible for the most recent version
1095 # include the revision responsible for the most recent version
General Comments 0
You need to be logged in to leave comments. Login now