comparison mercurial/revset.py @ 14057:ef1217a7f206

revset: fix undefined name ParseError
author Brodie Rao <brodie@bitheap.org>
date Sat, 30 Apr 2011 06:58:22 -0700
parents e44ebd2a142a
children 611d2f8a4ba2
comparison
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])``