equal
deleted
inserted
replaced
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])`` |