[PATCH 1 of 6] revset.bisected: remove 'unknown' state

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Sat Sep 17 15:27:29 CDT 2011

 mercurial/revset.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr>
# Date 1316206441 -7200
# Node ID 4872676fa026e1cf3adaca0aab4988cc0a6b6b44
# Parent  a21ccf4412d58bdcf2451186f418594900ff15c6
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 at anciens.enib.fr>

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -240,7 +240,7 @@
     Changesets marked in the specified bisect state (good, bad, skip).
     state = getstring(x, _("bisect requires a string")).lower()
-    if state not in ('good', 'bad', 'skip', 'unknown'):
+    if state not in ('good', 'bad', 'skip'):
         raise error.ParseError(_('invalid bisect state'))
     marked = set(repo.changelog.rev(n) for n in hbisect.load_state(repo)[state])
     return [r for r in subset if r in marked]

More information about the Mercurial-devel mailing list