git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] bisect: test merge base if good rev is not an ancestor of bad rev

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 10, 2008, 23:10 UTC
Message-ID
<7vej61nxo3.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200807110036.17504.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 5 quoted lines
> Another idea to fix the problem, might be to bisect as usual and at the end 
> before saying "X is first bad commit" to check if some of X parents are 
> merge bases between the bad rev and a good rev. If that is the case, then 
> we could ask the user to check that these parents are all good. On average 
> this would probably reduce the number of revs the user must check.

I do not think that would fly well. After spending long bisection cycle, you will be telling the user that it was a wild goose chase (iow, the user did an invalid bisection and what we stopped at was not the first breakage). If the bisection topology is invalid, we should tell the user before he wastes too much time.

The sad part is that the biesction log from such an initial round would not be very useful for reusing even if the user then chooses to hunt for the "fix" on the side branch to forward port, in which case the meaning of good and bad needs to be swapped from the beginning.

Previous: Johannes SchindelinNext: Christian Couder
Message 15 of 18 in “bisect: test merge base if good rev is not an ancestor of bad rev”
  1. bisect: test merge base if good rev is not an ancestor of bad revChristian Couder, Jul 10, 2008
  2. Johannes SchindelinJul 10, 2008
  3. Christian CouderJul 10, 2008
  4. Junio C HamanoJul 10, 2008
  5. Junio C HamanoJul 10, 2008
  6. Christian CouderJul 10, 2008
  7. Johannes SchindelinJul 10, 2008
  8. Christian CouderJul 10, 2008
  9. Junio C HamanoJul 10, 2008
  10. Christian CouderJul 10, 2008
  11. Junio C HamanoJul 10, 2008
  12. Johannes SchindelinJul 10, 2008
  13. Junio C HamanoJul 11, 2008
  14. Johannes SchindelinJul 11, 2008
  15. Junio C HamanoJul 10, 2008
  16. Christian CouderJul 13, 2008
  17. Johannes SchindelinJul 13, 2008
  18. Christian CouderJul 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.