Not logged in
Diff

Differences From Artifact [378ff72f56]:

  • File src/bisect.c — part of check-in [cfec72248e] at 2011-03-10 17:39:09 on branch path-refactor — Add the ability to compute common ancestors to the path object. Still using the pivot object for merges, however. (user: drh size: 4852) [more...]

To Artifact [b394ba4ae4]:

  • File src/bisect.c — part of check-in [a8b0c6ffdb] at 2011-03-30 18:58:48 on branch trunk — Print a help message instead of segfaulting if "fossil bisect" is invoked with too few arguments. Ticket [82cd90df7b2f2a1] (user: drh size: 4914)

86
87
88
89
90
91
92



93
94
95
96
97
98
99
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102







+
+
+







**
**     List the versions in between "bad" and "good".
*/
void bisect_cmd(void){
  int n;
  const char *zCmd;
  db_must_be_within_tree();
  if( g.argc<3 ){
    usage("bisect SUBCOMMAND ARGS...");
  }
  zCmd = g.argv[2];
  n = strlen(zCmd);
  if( n==0 ) zCmd = "-";
  if( memcmp(zCmd, "bad", n)==0 ){
    int ridBad;
    if( g.argc==3 ){
      ridBad = db_lget_int("checkout",0);