##// END OF EJS Templates
revset: improve head revset performance...
Durham Goode -
r20713:6a1a4c21 default
parent child Browse files
Show More
@@ -940,7 +940,7 b' def head(repo, subset, x):'
940 hs = set()
940 hs = set()
941 for b, ls in repo.branchmap().iteritems():
941 for b, ls in repo.branchmap().iteritems():
942 hs.update(repo[h].rev() for h in ls)
942 hs.update(repo[h].rev() for h in ls)
943 return subset.filter(lambda r: r in hs)
943 return baseset(hs).filter(subset.__contains__)
944
944
945 def heads(repo, subset, x):
945 def heads(repo, subset, x):
946 """``heads(set)``
946 """``heads(set)``
General Comments 0
You need to be logged in to leave comments. Login now