Fossil SCM
Fix the new linear bisect so that it always goes from good to bad and stops at the first bad check-in found.
Commit
e65544571e21c709a70af5bdd3a93217e1e9cb2023b4727ccc2c311995d8f117
Parent
42f61b677e451b1…
1 file changed
+1
+1
| --- src/bisect.c | ||
| +++ src/bisect.c | ||
| @@ -634,10 +634,11 @@ | ||
| 634 | 634 | char *zDisplay = db_lget("bisect-display","chart"); |
| 635 | 635 | int m = (int)strlen(zDisplay); |
| 636 | 636 | bisect_path(); |
| 637 | 637 | if( db_lget_boolean("bisect-linear",0) ){ |
| 638 | 638 | pMid = path_next(); |
| 639 | + if( pMid && pMid->rid==db_lget_int("checkout",0) ) pMid = 0; | |
| 639 | 640 | }else{ |
| 640 | 641 | pMid = path_midpoint(); |
| 641 | 642 | } |
| 642 | 643 | if( pMid==0 ){ |
| 643 | 644 | fossil_print("bisect complete\n"); |
| 644 | 645 |
| --- src/bisect.c | |
| +++ src/bisect.c | |
| @@ -634,10 +634,11 @@ | |
| 634 | char *zDisplay = db_lget("bisect-display","chart"); |
| 635 | int m = (int)strlen(zDisplay); |
| 636 | bisect_path(); |
| 637 | if( db_lget_boolean("bisect-linear",0) ){ |
| 638 | pMid = path_next(); |
| 639 | }else{ |
| 640 | pMid = path_midpoint(); |
| 641 | } |
| 642 | if( pMid==0 ){ |
| 643 | fossil_print("bisect complete\n"); |
| 644 |
| --- src/bisect.c | |
| +++ src/bisect.c | |
| @@ -634,10 +634,11 @@ | |
| 634 | char *zDisplay = db_lget("bisect-display","chart"); |
| 635 | int m = (int)strlen(zDisplay); |
| 636 | bisect_path(); |
| 637 | if( db_lget_boolean("bisect-linear",0) ){ |
| 638 | pMid = path_next(); |
| 639 | if( pMid && pMid->rid==db_lget_int("checkout",0) ) pMid = 0; |
| 640 | }else{ |
| 641 | pMid = path_midpoint(); |
| 642 | } |
| 643 | if( pMid==0 ){ |
| 644 | fossil_print("bisect complete\n"); |
| 645 |