From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Junio C Hamano <gitster@pobox.com>
Cc: Christian Couder <chriscool@tuxfamily.org>,
Michael Haggerty <mhagger@alum.mit.edu>,
Jeff King <peff@peff.net>,
git@vger.kernel.org
Subject: Re: [PATCH] bisect: test merge base if good rev is not an ancestor of bad rev
Date: Fri, 11 Jul 2008 13:21:16 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.1.00.0807111316450.3640@eeepc-johanness> (raw)
In-Reply-To: <7vabgolxqa.fsf@gitster.siamese.dyndns.org>
Hi,
On Thu, 10 Jul 2008, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>
> > On Thu, 10 Jul 2008, Junio C Hamano wrote:
> >
> >> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >>
> > Of course it can be that the user commits a pilot error and says "but
> > that unrelated version was good", while the fork point(s) between good
> > and bad was bad (and this might be even the intention of the user, to
> > find _one_ commit that introduced the bug).
> >
> > Speaking of plural, what if some of the merge bases are good, some are
> > bad?
> >
> > Without carefully thinking it through, you might even _break_ the tool.
>
> And you think it is better to make all of your _users_ think it through
> every time? Isn't it more error prone?
Maybe I am alone here, but except for that occasion that triggered my
"fixed/unfixed" patch, I did have to think, in order to use git-bisect. I
said "git bisect start && git bisect bad HEAD && git bisect good
HEAD@{1.day.ago}", and then follow the instructions.
> > All I was proposing is keeping the current semantics, keeping the
> > mechanism simple, and therefore reliable.
>
> What I suggested to Christian (sorry, I've been busy and I still haven't
> checked if that is what was implemented in the patch -- that is why I
> suggested you to read the original thread) was:
>
> - check good and bad to see if they are forked
>
> - iff they are,
>
> - have the user check merge bases and make sure they are all
> good. otherwise, the initial good/bad pair is unsuitable for
> bisection, so explain the situation and quit [*1*];
>
> - otherwise, keep these good markers.
>
> - do the usual bisection --- from this point on it is "simple and
> reliable as it has always been".
Okay, that seems like a trivial and good patch.
> *1* We _could_ make things more complex by offering to swap good and bad
> at this point and then continue bisecting to find a commit to cherry-pick
> to forward port the fix. Arguably, that step would be a new code and
> could start out to be buggy --- it _could_ be called destabilizing what
> has been reliable, but even then, it would be a separate codepath and a
> new bug will be something that triggers only when the user accepts that
> offer. I do not see what the big deal is that you seem to be worried
> about.
That is what I am actually scared off. That in the wake of a nice and
trivial patch, things get muddied and complicated like back when "rebase
-i -m" was made unusable for the layman.
Ciao,
Dscho
next prev parent reply other threads:[~2008-07-11 11:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 3:41 [PATCH] bisect: test merge base if good rev is not an ancestor of bad rev Christian Couder
2008-07-10 10:04 ` Johannes Schindelin
2008-07-10 19:26 ` Christian Couder
2008-07-10 20:02 ` Junio C Hamano
2008-07-10 20:13 ` Junio C Hamano
2008-07-10 22:36 ` Christian Couder
2008-07-10 22:38 ` Johannes Schindelin
2008-07-10 23:21 ` Christian Couder
2008-07-10 23:24 ` Junio C Hamano
2008-07-10 23:45 ` Christian Couder
2008-07-10 23:50 ` Junio C Hamano
2008-07-10 23:59 ` Johannes Schindelin
2008-07-11 6:51 ` Junio C Hamano
2008-07-11 11:21 ` Johannes Schindelin [this message]
2008-07-10 23:10 ` Junio C Hamano
2008-07-13 6:37 ` Christian Couder
2008-07-13 13:14 ` Johannes Schindelin
2008-07-22 6:15 ` Christian Couder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.00.0807111316450.3640@eeepc-johanness \
--to=johannes.schindelin@gmx.de \
--cc=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mhagger@alum.mit.edu \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox