Fossil SCM
Merge changes for the capture_case_sensitive_option() function.
Commit
503362a5e4ba04fba2970cabe320c540fa4309fa
Parent
b98681739da3ba1…
7 files changed
-5
-2
-1
-1
+1
-1
-1
-5
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -260,11 +260,10 @@ | ||
| 260 | 260 | |
| 261 | 261 | zCleanFlag = find_option("clean",0,1); |
| 262 | 262 | zIgnoreFlag = find_option("ignore",0,1); |
| 263 | 263 | forceFlag = find_option("force","f",0)!=0; |
| 264 | 264 | if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL; |
| 265 | - capture_case_sensitive_option(); | |
| 266 | 265 | |
| 267 | 266 | /* We should be done with options.. */ |
| 268 | 267 | verify_all_options(); |
| 269 | 268 | |
| 270 | 269 | db_must_be_within_tree(); |
| @@ -353,12 +352,10 @@ | ||
| 353 | 352 | */ |
| 354 | 353 | void delete_cmd(void){ |
| 355 | 354 | int i; |
| 356 | 355 | Stmt loop; |
| 357 | 356 | |
| 358 | - capture_case_sensitive_option(); | |
| 359 | - | |
| 360 | 357 | /* We should be done with options.. */ |
| 361 | 358 | verify_all_options(); |
| 362 | 359 | |
| 363 | 360 | db_must_be_within_tree(); |
| 364 | 361 | db_begin_transaction(); |
| @@ -523,11 +520,10 @@ | ||
| 523 | 520 | Glob *pIgnore, *pClean; |
| 524 | 521 | |
| 525 | 522 | if( !dryRunFlag ){ |
| 526 | 523 | dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ |
| 527 | 524 | } |
| 528 | - capture_case_sensitive_option(); | |
| 529 | 525 | |
| 530 | 526 | /* We should be done with options.. */ |
| 531 | 527 | verify_all_options(); |
| 532 | 528 | |
| 533 | 529 | db_must_be_within_tree(); |
| @@ -635,11 +631,10 @@ | ||
| 635 | 631 | int vid; |
| 636 | 632 | char *zDest; |
| 637 | 633 | Blob dest; |
| 638 | 634 | Stmt q; |
| 639 | 635 | |
| 640 | - capture_case_sensitive_option(); | |
| 641 | 636 | db_must_be_within_tree(); |
| 642 | 637 | |
| 643 | 638 | /* We should be done with options.. */ |
| 644 | 639 | verify_all_options(); |
| 645 | 640 | |
| 646 | 641 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -260,11 +260,10 @@ | |
| 260 | |
| 261 | zCleanFlag = find_option("clean",0,1); |
| 262 | zIgnoreFlag = find_option("ignore",0,1); |
| 263 | forceFlag = find_option("force","f",0)!=0; |
| 264 | if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL; |
| 265 | capture_case_sensitive_option(); |
| 266 | |
| 267 | /* We should be done with options.. */ |
| 268 | verify_all_options(); |
| 269 | |
| 270 | db_must_be_within_tree(); |
| @@ -353,12 +352,10 @@ | |
| 353 | */ |
| 354 | void delete_cmd(void){ |
| 355 | int i; |
| 356 | Stmt loop; |
| 357 | |
| 358 | capture_case_sensitive_option(); |
| 359 | |
| 360 | /* We should be done with options.. */ |
| 361 | verify_all_options(); |
| 362 | |
| 363 | db_must_be_within_tree(); |
| 364 | db_begin_transaction(); |
| @@ -523,11 +520,10 @@ | |
| 523 | Glob *pIgnore, *pClean; |
| 524 | |
| 525 | if( !dryRunFlag ){ |
| 526 | dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ |
| 527 | } |
| 528 | capture_case_sensitive_option(); |
| 529 | |
| 530 | /* We should be done with options.. */ |
| 531 | verify_all_options(); |
| 532 | |
| 533 | db_must_be_within_tree(); |
| @@ -635,11 +631,10 @@ | |
| 635 | int vid; |
| 636 | char *zDest; |
| 637 | Blob dest; |
| 638 | Stmt q; |
| 639 | |
| 640 | capture_case_sensitive_option(); |
| 641 | db_must_be_within_tree(); |
| 642 | |
| 643 | /* We should be done with options.. */ |
| 644 | verify_all_options(); |
| 645 | |
| 646 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -260,11 +260,10 @@ | |
| 260 | |
| 261 | zCleanFlag = find_option("clean",0,1); |
| 262 | zIgnoreFlag = find_option("ignore",0,1); |
| 263 | forceFlag = find_option("force","f",0)!=0; |
| 264 | if( find_option("dotfiles",0,0)!=0 ) scanFlags |= SCAN_ALL; |
| 265 | |
| 266 | /* We should be done with options.. */ |
| 267 | verify_all_options(); |
| 268 | |
| 269 | db_must_be_within_tree(); |
| @@ -353,12 +352,10 @@ | |
| 352 | */ |
| 353 | void delete_cmd(void){ |
| 354 | int i; |
| 355 | Stmt loop; |
| 356 | |
| 357 | /* We should be done with options.. */ |
| 358 | verify_all_options(); |
| 359 | |
| 360 | db_must_be_within_tree(); |
| 361 | db_begin_transaction(); |
| @@ -523,11 +520,10 @@ | |
| 520 | Glob *pIgnore, *pClean; |
| 521 | |
| 522 | if( !dryRunFlag ){ |
| 523 | dryRunFlag = find_option("test",0,0)!=0; /* deprecated */ |
| 524 | } |
| 525 | |
| 526 | /* We should be done with options.. */ |
| 527 | verify_all_options(); |
| 528 | |
| 529 | db_must_be_within_tree(); |
| @@ -635,11 +631,10 @@ | |
| 631 | int vid; |
| 632 | char *zDest; |
| 633 | Blob dest; |
| 634 | Stmt q; |
| 635 | |
| 636 | db_must_be_within_tree(); |
| 637 | |
| 638 | /* We should be done with options.. */ |
| 639 | verify_all_options(); |
| 640 | |
| 641 |
-2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -473,11 +473,10 @@ | ||
| 473 | 473 | Glob *pIgnore; |
| 474 | 474 | Blob rewrittenPathname; |
| 475 | 475 | const char *zPathname, *zDisplayName; |
| 476 | 476 | |
| 477 | 477 | if( find_option("temp",0,0)!=0 ) scanFlags |= SCAN_TEMP; |
| 478 | - capture_case_sensitive_option(); | |
| 479 | 478 | db_must_be_within_tree(); |
| 480 | 479 | cwdRelative = determine_cwd_relative_option(); |
| 481 | 480 | |
| 482 | 481 | /* We should be done with options.. */ |
| 483 | 482 | verify_all_options(); |
| @@ -596,11 +595,10 @@ | ||
| 596 | 595 | if( find_option("allckouts",0,0)!=0 ) scanFlags |= SCAN_NESTED; |
| 597 | 596 | zIgnoreFlag = find_option("ignore",0,1); |
| 598 | 597 | verboseFlag = find_option("verbose","v",0)!=0; |
| 599 | 598 | zKeepFlag = find_option("keep",0,1); |
| 600 | 599 | zCleanFlag = find_option("clean",0,1); |
| 601 | - capture_case_sensitive_option(); | |
| 602 | 600 | db_must_be_within_tree(); |
| 603 | 601 | if( zIgnoreFlag==0 ){ |
| 604 | 602 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 605 | 603 | } |
| 606 | 604 | if( zKeepFlag==0 ){ |
| 607 | 605 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -473,11 +473,10 @@ | |
| 473 | Glob *pIgnore; |
| 474 | Blob rewrittenPathname; |
| 475 | const char *zPathname, *zDisplayName; |
| 476 | |
| 477 | if( find_option("temp",0,0)!=0 ) scanFlags |= SCAN_TEMP; |
| 478 | capture_case_sensitive_option(); |
| 479 | db_must_be_within_tree(); |
| 480 | cwdRelative = determine_cwd_relative_option(); |
| 481 | |
| 482 | /* We should be done with options.. */ |
| 483 | verify_all_options(); |
| @@ -596,11 +595,10 @@ | |
| 596 | if( find_option("allckouts",0,0)!=0 ) scanFlags |= SCAN_NESTED; |
| 597 | zIgnoreFlag = find_option("ignore",0,1); |
| 598 | verboseFlag = find_option("verbose","v",0)!=0; |
| 599 | zKeepFlag = find_option("keep",0,1); |
| 600 | zCleanFlag = find_option("clean",0,1); |
| 601 | capture_case_sensitive_option(); |
| 602 | db_must_be_within_tree(); |
| 603 | if( zIgnoreFlag==0 ){ |
| 604 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 605 | } |
| 606 | if( zKeepFlag==0 ){ |
| 607 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -473,11 +473,10 @@ | |
| 473 | Glob *pIgnore; |
| 474 | Blob rewrittenPathname; |
| 475 | const char *zPathname, *zDisplayName; |
| 476 | |
| 477 | if( find_option("temp",0,0)!=0 ) scanFlags |= SCAN_TEMP; |
| 478 | db_must_be_within_tree(); |
| 479 | cwdRelative = determine_cwd_relative_option(); |
| 480 | |
| 481 | /* We should be done with options.. */ |
| 482 | verify_all_options(); |
| @@ -596,11 +595,10 @@ | |
| 595 | if( find_option("allckouts",0,0)!=0 ) scanFlags |= SCAN_NESTED; |
| 596 | zIgnoreFlag = find_option("ignore",0,1); |
| 597 | verboseFlag = find_option("verbose","v",0)!=0; |
| 598 | zKeepFlag = find_option("keep",0,1); |
| 599 | zCleanFlag = find_option("clean",0,1); |
| 600 | db_must_be_within_tree(); |
| 601 | if( zIgnoreFlag==0 ){ |
| 602 | zIgnoreFlag = db_get("ignore-glob", 0); |
| 603 | } |
| 604 | if( zKeepFlag==0 ){ |
| 605 |
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -1102,11 +1102,10 @@ | ||
| 1102 | 1102 | void cmd_test_tree_name(void){ |
| 1103 | 1103 | int i; |
| 1104 | 1104 | Blob x; |
| 1105 | 1105 | db_find_and_open_repository(0,0); |
| 1106 | 1106 | blob_zero(&x); |
| 1107 | - capture_case_sensitive_option(); | |
| 1108 | 1107 | for(i=2; i<g.argc; i++){ |
| 1109 | 1108 | if( file_tree_name(g.argv[i], &x, 1) ){ |
| 1110 | 1109 | fossil_print("%s\n", blob_buffer(&x)); |
| 1111 | 1110 | blob_reset(&x); |
| 1112 | 1111 | } |
| 1113 | 1112 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -1102,11 +1102,10 @@ | |
| 1102 | void cmd_test_tree_name(void){ |
| 1103 | int i; |
| 1104 | Blob x; |
| 1105 | db_find_and_open_repository(0,0); |
| 1106 | blob_zero(&x); |
| 1107 | capture_case_sensitive_option(); |
| 1108 | for(i=2; i<g.argc; i++){ |
| 1109 | if( file_tree_name(g.argv[i], &x, 1) ){ |
| 1110 | fossil_print("%s\n", blob_buffer(&x)); |
| 1111 | blob_reset(&x); |
| 1112 | } |
| 1113 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -1102,11 +1102,10 @@ | |
| 1102 | void cmd_test_tree_name(void){ |
| 1103 | int i; |
| 1104 | Blob x; |
| 1105 | db_find_and_open_repository(0,0); |
| 1106 | blob_zero(&x); |
| 1107 | for(i=2; i<g.argc; i++){ |
| 1108 | if( file_tree_name(g.argv[i], &x, 1) ){ |
| 1109 | fossil_print("%s\n", blob_buffer(&x)); |
| 1110 | blob_reset(&x); |
| 1111 | } |
| 1112 |
-1
| --- src/finfo.c | ||
| +++ src/finfo.c | ||
| @@ -56,11 +56,10 @@ | ||
| 56 | 56 | ** entry). |
| 57 | 57 | ** |
| 58 | 58 | ** See also: artifact, cat, descendants, info, leaves |
| 59 | 59 | */ |
| 60 | 60 | void finfo_cmd(void){ |
| 61 | - capture_case_sensitive_option(); | |
| 62 | 61 | db_must_be_within_tree(); |
| 63 | 62 | if( find_option("status","s",0) ){ |
| 64 | 63 | Stmt q; |
| 65 | 64 | Blob line; |
| 66 | 65 | Blob fname; |
| 67 | 66 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -56,11 +56,10 @@ | |
| 56 | ** entry). |
| 57 | ** |
| 58 | ** See also: artifact, cat, descendants, info, leaves |
| 59 | */ |
| 60 | void finfo_cmd(void){ |
| 61 | capture_case_sensitive_option(); |
| 62 | db_must_be_within_tree(); |
| 63 | if( find_option("status","s",0) ){ |
| 64 | Stmt q; |
| 65 | Blob line; |
| 66 | Blob fname; |
| 67 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -56,11 +56,10 @@ | |
| 56 | ** entry). |
| 57 | ** |
| 58 | ** See also: artifact, cat, descendants, info, leaves |
| 59 | */ |
| 60 | void finfo_cmd(void){ |
| 61 | db_must_be_within_tree(); |
| 62 | if( find_option("status","s",0) ){ |
| 63 | Stmt q; |
| 64 | Blob line; |
| 65 | Blob fname; |
| 66 |
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -609,10 +609,11 @@ | ||
| 609 | 609 | memset(&g.tcl, 0, sizeof(TclContext)); |
| 610 | 610 | g.tcl.argc = g.argc; |
| 611 | 611 | g.tcl.argv = copy_args(g.argc, g.argv); /* save full arguments */ |
| 612 | 612 | #endif |
| 613 | 613 | g.mainTimerId = fossil_timer_start(); |
| 614 | + capture_case_sensitive_option(); | |
| 614 | 615 | g.zVfsName = find_option("vfs",0,1); |
| 615 | 616 | if( g.zVfsName==0 ){ |
| 616 | 617 | g.zVfsName = fossil_getenv("FOSSIL_VFS"); |
| 617 | 618 | } |
| 618 | 619 | if( g.zVfsName ){ |
| 619 | 620 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -609,10 +609,11 @@ | |
| 609 | memset(&g.tcl, 0, sizeof(TclContext)); |
| 610 | g.tcl.argc = g.argc; |
| 611 | g.tcl.argv = copy_args(g.argc, g.argv); /* save full arguments */ |
| 612 | #endif |
| 613 | g.mainTimerId = fossil_timer_start(); |
| 614 | g.zVfsName = find_option("vfs",0,1); |
| 615 | if( g.zVfsName==0 ){ |
| 616 | g.zVfsName = fossil_getenv("FOSSIL_VFS"); |
| 617 | } |
| 618 | if( g.zVfsName ){ |
| 619 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -609,10 +609,11 @@ | |
| 609 | memset(&g.tcl, 0, sizeof(TclContext)); |
| 610 | g.tcl.argc = g.argc; |
| 611 | g.tcl.argv = copy_args(g.argc, g.argv); /* save full arguments */ |
| 612 | #endif |
| 613 | g.mainTimerId = fossil_timer_start(); |
| 614 | capture_case_sensitive_option(); |
| 615 | g.zVfsName = find_option("vfs",0,1); |
| 616 | if( g.zVfsName==0 ){ |
| 617 | g.zVfsName = fossil_getenv("FOSSIL_VFS"); |
| 618 | } |
| 619 | if( g.zVfsName ){ |
| 620 |
-1
| --- src/merge.c | ||
| +++ src/merge.c | ||
| @@ -145,11 +145,10 @@ | ||
| 145 | 145 | if( !dryRunFlag ){ |
| 146 | 146 | dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */ |
| 147 | 147 | } |
| 148 | 148 | forceFlag = find_option("force","f",0)!=0; |
| 149 | 149 | zPivot = find_option("baseline",0,1); |
| 150 | - capture_case_sensitive_option(); | |
| 151 | 150 | verify_all_options(); |
| 152 | 151 | db_must_be_within_tree(); |
| 153 | 152 | if( zBinGlob==0 ) zBinGlob = db_get("binary-glob",0); |
| 154 | 153 | vid = db_lget_int("checkout", 0); |
| 155 | 154 | if( vid==0 ){ |
| 156 | 155 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -145,11 +145,10 @@ | |
| 145 | if( !dryRunFlag ){ |
| 146 | dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */ |
| 147 | } |
| 148 | forceFlag = find_option("force","f",0)!=0; |
| 149 | zPivot = find_option("baseline",0,1); |
| 150 | capture_case_sensitive_option(); |
| 151 | verify_all_options(); |
| 152 | db_must_be_within_tree(); |
| 153 | if( zBinGlob==0 ) zBinGlob = db_get("binary-glob",0); |
| 154 | vid = db_lget_int("checkout", 0); |
| 155 | if( vid==0 ){ |
| 156 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -145,11 +145,10 @@ | |
| 145 | if( !dryRunFlag ){ |
| 146 | dryRunFlag = find_option("nochange",0,0)!=0; /* deprecated */ |
| 147 | } |
| 148 | forceFlag = find_option("force","f",0)!=0; |
| 149 | zPivot = find_option("baseline",0,1); |
| 150 | verify_all_options(); |
| 151 | db_must_be_within_tree(); |
| 152 | if( zBinGlob==0 ) zBinGlob = db_get("binary-glob",0); |
| 153 | vid = db_lget_int("checkout", 0); |
| 154 | if( vid==0 ){ |
| 155 |
-1
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -144,11 +144,10 @@ | ||
| 144 | 144 | } |
| 145 | 145 | verboseFlag = find_option("verbose","v",0)!=0; |
| 146 | 146 | forceMissingFlag = find_option("force-missing",0,0)!=0; |
| 147 | 147 | debugFlag = find_option("debug",0,0)!=0; |
| 148 | 148 | setmtimeFlag = find_option("setmtime",0,0)!=0; |
| 149 | - capture_case_sensitive_option(); | |
| 150 | 149 | |
| 151 | 150 | /* We should be done with options.. */ |
| 152 | 151 | verify_all_options(); |
| 153 | 152 | |
| 154 | 153 | db_must_be_within_tree(); |
| 155 | 154 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -144,11 +144,10 @@ | |
| 144 | } |
| 145 | verboseFlag = find_option("verbose","v",0)!=0; |
| 146 | forceMissingFlag = find_option("force-missing",0,0)!=0; |
| 147 | debugFlag = find_option("debug",0,0)!=0; |
| 148 | setmtimeFlag = find_option("setmtime",0,0)!=0; |
| 149 | capture_case_sensitive_option(); |
| 150 | |
| 151 | /* We should be done with options.. */ |
| 152 | verify_all_options(); |
| 153 | |
| 154 | db_must_be_within_tree(); |
| 155 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -144,11 +144,10 @@ | |
| 144 | } |
| 145 | verboseFlag = find_option("verbose","v",0)!=0; |
| 146 | forceMissingFlag = find_option("force-missing",0,0)!=0; |
| 147 | debugFlag = find_option("debug",0,0)!=0; |
| 148 | setmtimeFlag = find_option("setmtime",0,0)!=0; |
| 149 | |
| 150 | /* We should be done with options.. */ |
| 151 | verify_all_options(); |
| 152 | |
| 153 | db_must_be_within_tree(); |
| 154 |