How to use "bzr bisect"?
Eric Siegerman
lists08-bzr at davor.org
Mon Mar 1 17:41:19 GMT 2010
On Sat, 2010-02-27 at 21:14 +0200, Eli Zaretskii wrote:
> Suppose I have a tree at revision REVBUG which is known to exhibit a
> bug. Suppose I also know that a prior revision REVNOBUG does not
> exhibit this bug. How do I start the bisection?
> [...]
> Was I supposed to say "bzr bisect no -r REVNOBUG" before "bzr bisect
> yes"?
Yes, but not "before"; rather, "instead of":
bzr bisect start
bzr bisect no -r REVNOBUG
That will put you half-way between REVNOBUG and REVLATEST (which
== REVBUG), from where you can start your {test for bug; "bzr
bisect {yes|no}"} cycle.
Basically, "bisect" assumes that REVBUG==REVLATEST and that
REVNOBUG==1. The former assumption is, I suspect, both valid and
optimal in the vast majority of cases. The latter might not be
optimal, but is at least safe. And both assumptions are easily
overridable.
- Eric
More information about the bazaar
mailing list