comparison mercurial/revset.py @ 22867:5ee9b78ce805

revset-branch: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 08 Oct 2014 02:47:00 -0700
parents 6e739356f9bf
children 88ad04bcdc74
comparison
equal deleted inserted replaced
22866:6e739356f9bf 22867:5ee9b78ce805
495 495
496 s = getset(repo, spanset(repo), x) 496 s = getset(repo, spanset(repo), x)
497 b = set() 497 b = set()
498 for r in s: 498 for r in s:
499 b.add(repo[r].branch()) 499 b.add(repo[r].branch())
500 s = s.set() 500 c = s.__contains__
501 return subset.filter(lambda r: r in s or repo[r].branch() in b) 501 return subset.filter(lambda r: c(r) or repo[r].branch() in b)
502 502
503 def bumped(repo, subset, x): 503 def bumped(repo, subset, x):
504 """``bumped()`` 504 """``bumped()``
505 Mutable changesets marked as successors of public changesets. 505 Mutable changesets marked as successors of public changesets.
506 506