mercurial/revset.py
changeset 22532 0cf46b8298fe
parent 22531 22ba2c0825da
child 22533 5b65429721d5
equal deleted inserted replaced
22531:22ba2c0825da 22532:0cf46b8298fe
   424     - ``current``            : the cset currently being bisected
   424     - ``current``            : the cset currently being bisected
   425     """
   425     """
   426     # i18n: "bisect" is a keyword
   426     # i18n: "bisect" is a keyword
   427     status = getstring(x, _("bisect requires a string")).lower()
   427     status = getstring(x, _("bisect requires a string")).lower()
   428     state = set(hbisect.get(repo, status))
   428     state = set(hbisect.get(repo, status))
   429     return subset.filter(state.__contains__)
   429     return subset & state
   430 
   430 
   431 # Backward-compatibility
   431 # Backward-compatibility
   432 # - no help entry so that we do not advertise it any more
   432 # - no help entry so that we do not advertise it any more
   433 def bisected(repo, subset, x):
   433 def bisected(repo, subset, x):
   434     return bisect(repo, subset, x)
   434     return bisect(repo, subset, x)