meaning/usage of "yes" and "no" are unclear
Bug #1051395 reported by
Samuel Bronson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Bisect Plugin |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The only real clue about what "yes" and "no" mean comes from this part of the help:
bzr bisect run <script>
Bisect automatically using <script> to determine 'yes' or 'no'.
<script> should exit with:
0 for yes
125 for unknown (like build failed so we could not test)
anything else for no
and *that* is mostly by analogy with git.
This leads me to believe that "yes" is for revisions before the change sought, and "no" for those after it; in git's terminology, "yes" is "good" and "no" is "bad.
Is that true, or at least consistent? If not, well, that's downright misleading. Anyway, it ought to be clarified, explicitly and/or through examples.
Related branches
lp:~jeff-licquia/bzr-bisect/yesno
Ready for review
for merging
into
lp:bzr-bisect
- Bazaar Developers: Pending requested
-
Diff: 69 lines (+37/-2)2 files modifiedcmds.py (+5/-2)
tests.py (+32/-0)
To post a comment you must log in.
Originally, the meaning of "yes" and "no" was intended to be dependent on how you used it. If you started out with "yes" meaning the same as git's "good", it would honor that; if you started with "no" meaning "good", it would do that too.
The reason: I didn't like the "good" vs. "bad" naming in git. If you were trying to find a fix or new feature, say, instead of a regression, then you'd be saying the feature was bad. My thought was: create a question that can be answered "yes" or "no", and answer it for each revision. As long as the question was the same, it should work.
Unfortunately, I never wrote a test for this, and the functionality bit-rotted (if it ever worked to begin with).
I've posted a branch which fixes this, as well as a functional test for the feature. With this branch, this:
bzr bisect start
bzr bisect yes
bzr bisect no -r -3
and:
bzr bisect start
bzr bisect no
bzr bisect yes -r -3
should be exactly equivalent.
I'll propose my branch for merging. Assuming this works, does it resolve the confusion you had?