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

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Sun Sep 18 18:31:12 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 1316333271 -7200
# Node ID 236b93854c812fda11bd19301c6416579a49164e
# Parent  9b41ccb2043e724690018f7cd25645dc5b980d51
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