mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
revset-branch: remove usage of set()
All smartset classes have fast lookup, so this function will be removed soon.
This commit is contained in:
parent
afe4b27987
commit
4186e2d344
@ -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()``
|
||||
|
Loading…
Reference in New Issue
Block a user