Fossil

Check-in [a8b0c6ff]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Print a help message instead of segfaulting if "fossil bisect" is invoked with too few arguments. Ticket [82cd90df7b2f2a1]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a8b0c6ffdbd89b1e270d4e3fca2d451bd57b114a
User & Date: drh 2011-03-30 18:58:48
Context
2011-03-30
21:45
Added the "detail" query parameter to the timeline web page. check-in: bde16926 user: drh tags: trunk
18:58
Print a help message instead of segfaulting if "fossil bisect" is invoked with too few arguments. Ticket [82cd90df7b2f2a1] check-in: a8b0c6ff user: drh tags: trunk
2011-03-29
13:54
Add more colors to the background color palette. check-in: 51759d52 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/bisect.c.

86
87
88
89
90
91
92



93
94
95
96
97
98
99
**
**     List the versions in between "bad" and "good".
*/
void bisect_cmd(void){
  int n;
  const char *zCmd;
  db_must_be_within_tree();



  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);







>
>
>







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);