mercurial/revset.py
changeset 14057 ef1217a7f206
parent 13938 e44ebd2a142a
child 14061 611d2f8a4ba2
equal deleted inserted replaced
14054:3c616f512a5b 14057:ef1217a7f206
   221     """``bisected(string)``
   221     """``bisected(string)``
   222     Changesets marked in the specified bisect state (good, bad, skip).
   222     Changesets marked in the specified bisect state (good, bad, skip).
   223     """
   223     """
   224     state = getstring(x, _("bisect requires a string")).lower()
   224     state = getstring(x, _("bisect requires a string")).lower()
   225     if state not in ('good', 'bad', 'skip', 'unknown'):
   225     if state not in ('good', 'bad', 'skip', 'unknown'):
   226         raise ParseError(_('invalid bisect state'))
   226         raise error.ParseError(_('invalid bisect state'))
   227     marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
   227     marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
   228     return [r for r in subset if r in marked]
   228     return [r for r in subset if r in marked]
   229 
   229 
   230 def bookmark(repo, subset, x):
   230 def bookmark(repo, subset, x):
   231     """``bookmark([name])``
   231     """``bookmark([name])``