revset-branch: remove usage of set()

All smartset classes have fast lookup, so this function will be removed soon.
This commit is contained in:
Pierre-Yves David 2014-10-08 02:47:00 -07:00
parent afe4b27987
commit 4186e2d344

View File

@ -497,8 +497,8 @@ def branch(repo, subset, x):
b = set()
for r in s:
b.add(repo[r].branch())
s = s.set()
return subset.filter(lambda r: r in s or repo[r].branch() in b)
c = s.__contains__
return subset.filter(lambda r: c(r) or repo[r].branch() in b)
def bumped(repo, subset, x):
"""``bumped()``