73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
*/
static const struct {
const char *zName;
const char *zDefault;
const char *zDesc;
} aBisectOption[] = {
{ "auto-next", "on", "Automatically run \"bisect next\" after each "
"\"bisect good\" or \"bisect bad\"" },
{ "direct-only", "on", "Follow only primary parent-child links, not "
"merges\n" },
{ "display", "chart", "Command to run after \"next\". \"chart\", "
"\"log\", \"status\", or \"none\"" },
};
/*
|
|
>
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
*/
static const struct {
const char *zName;
const char *zDefault;
const char *zDesc;
} aBisectOption[] = {
{ "auto-next", "on", "Automatically run \"bisect next\" after each "
"\"bisect good\", \"bisect bad\", or \"bisect "
"skip\"" },
{ "direct-only", "on", "Follow only primary parent-child links, not "
"merges\n" },
{ "display", "chart", "Command to run after \"next\". \"chart\", "
"\"log\", \"status\", or \"none\"" },
};
/*
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
char c;
int rid;
if( blob_size(&log) ) blob_append(&log, " ", 1);
if( zDesc[0]=='n' ) blob_append(&log, "-", 1);
if( zDesc[0]=='s' ) blob_append(&log, "s", 1);
for(i=1; ((c = zDesc[i])>='0' && c<='9') || (c>='a' && c<='f'); i++){}
if( i==1 ) break;
rid = db_int(0,
"SELECT rid FROM blob"
" WHERE uuid LIKE '%.*q%%'"
" AND EXISTS(SELECT 1 FROM plink WHERE cid=rid)",
i-1, zDesc+1
);
if( rid==0 ) break;
blob_appendf(&log, "%d", rid);
|
|
|
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
char c;
int rid;
if( blob_size(&log) ) blob_append(&log, " ", 1);
if( zDesc[0]=='n' ) blob_append(&log, "-", 1);
if( zDesc[0]=='s' ) blob_append(&log, "s", 1);
for(i=1; ((c = zDesc[i])>='0' && c<='9') || (c>='a' && c<='f'); i++){}
if( i==1 ) break;
rid = db_int(0,
"SELECT rid FROM blob"
" WHERE uuid LIKE '%.*q%%'"
" AND EXISTS(SELECT 1 FROM plink WHERE cid=rid)",
i-1, zDesc+1
);
if( rid==0 ) break;
blob_appendf(&log, "%d", rid);
|
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
|
if( g.argc==3 ){
ridSkip = db_lget_int("checkout",0);
}else{
ridSkip = name_to_typed_rid(g.argv[3], "ci");
}
if( ridSkip>0 ){
bisect_append_skip(ridSkip);
if( bisect_option("auto-next")
&& db_lget_int("bisect-bad",0)>0
&& db_lget_int("bisect-good",0)>0
){
zCmd = "next";
n = 4;
}
}
|
|
|
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
|
if( g.argc==3 ){
ridSkip = db_lget_int("checkout",0);
}else{
ridSkip = name_to_typed_rid(g.argv[3], "ci");
}
if( ridSkip>0 ){
bisect_append_skip(ridSkip);
if( bisect_option("auto-next")
&& db_lget_int("bisect-bad",0)>0
&& db_lget_int("bisect-good",0)>0
){
zCmd = "next";
n = 4;
}
}
|