comparison mercurial/revset.py @ 15133:b1c62c754bf8

revset.bisected: remove 'unknown' state 'unknown' is not a valid bisect state, so causes a traceback. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
date Sun, 18 Sep 2011 10:07:51 +0200
parents 0ab1c3a1f3b2
children 81adf7777f8f
comparison
equal deleted inserted replaced
15132:81f76098211e 15133:b1c62c754bf8
238 def bisected(repo, subset, x): 238 def bisected(repo, subset, x):
239 """``bisected(string)`` 239 """``bisected(string)``
240 Changesets marked in the specified bisect state (good, bad, skip). 240 Changesets marked in the specified bisect state (good, bad, skip).
241 """ 241 """
242 state = getstring(x, _("bisect requires a string")).lower() 242 state = getstring(x, _("bisect requires a string")).lower()
243 if state not in ('good', 'bad', 'skip', 'unknown'): 243 if state not in ('good', 'bad', 'skip'):
244 raise error.ParseError(_('invalid bisect state')) 244 raise error.ParseError(_('invalid bisect state'))
245 marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state]) 245 marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
246 return [r for r in subset if r in marked] 246 return [r for r in subset if r in marked]
247 247
248 def bookmark(repo, subset, x): 248 def bookmark(repo, subset, x):