mercurial/hbisect.py
changeset 15137 91f93dcd72aa
parent 15136 18219c0789ae
child 15138 883d28233a4d
--- a/mercurial/hbisect.py	Sat Sep 17 17:33:34 2011 +0200
+++ b/mercurial/hbisect.py	Sat Sep 17 17:30:35 2011 +0200
@@ -160,6 +160,7 @@
 
     - ``good``, ``bad``, ``skip``: as the names imply
     - ``range``              : all csets taking part in the bisection
+    - ``pruned``             : good|bad|skip, excluding out-of-range csets
     """
     state = load_state(repo)
     if status in ('good', 'bad', 'skip'):
@@ -190,6 +191,9 @@
 
         if status == 'range':
             return [c for c in range]
+        elif status == 'pruned':
+            # We do not want skipped csets that are out-of-range
+            return [c for c in range if c in (goods | bads | skips)]
 
         else:
             raise error.ParseError(_('invalid bisect state'))