Fossil SCM
Replaced --dryrun with --dry-run in the commands which still used the former, except for two related internal-use/debugging-only flags where the change might have had undesired side effects. Removed the undocumented --dryrun backwards-compatibility flag from a couple commands for consistency's sake (else we need to have that option in all dry-run-capable commands). Discussion is in [forum:d732b4026f44bdba | forum post d732b4026f44bdba].
Commit
360d8652e76ca0930a2ba52353843d45d594201194f84e70b01c9b95028a56cb
Parent
d18a2f6105c85b9…
6 files changed
+1
-1
+1
-2
-1
+5
-5
+8
-8
+3
-3
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -4769,11 +4769,11 @@ | ||
| 4769 | 4769 | ** |
| 4770 | 4770 | ** The purpose of this command is for testing the WITHOUT ROWID capabilities |
| 4771 | 4771 | ** of SQLite. There is no big advantage to using WITHOUT ROWID in Fossil. |
| 4772 | 4772 | ** |
| 4773 | 4773 | ** Options: |
| 4774 | -** --dryrun | -n No changes. Just print what would happen. | |
| 4774 | +** --dry-run | -n No changes. Just print what would happen. | |
| 4775 | 4775 | */ |
| 4776 | 4776 | void test_without_rowid(void){ |
| 4777 | 4777 | int i, j; |
| 4778 | 4778 | Stmt q; |
| 4779 | 4779 | Blob allSql; |
| 4780 | 4780 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -4769,11 +4769,11 @@ | |
| 4769 | ** |
| 4770 | ** The purpose of this command is for testing the WITHOUT ROWID capabilities |
| 4771 | ** of SQLite. There is no big advantage to using WITHOUT ROWID in Fossil. |
| 4772 | ** |
| 4773 | ** Options: |
| 4774 | ** --dryrun | -n No changes. Just print what would happen. |
| 4775 | */ |
| 4776 | void test_without_rowid(void){ |
| 4777 | int i, j; |
| 4778 | Stmt q; |
| 4779 | Blob allSql; |
| 4780 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -4769,11 +4769,11 @@ | |
| 4769 | ** |
| 4770 | ** The purpose of this command is for testing the WITHOUT ROWID capabilities |
| 4771 | ** of SQLite. There is no big advantage to using WITHOUT ROWID in Fossil. |
| 4772 | ** |
| 4773 | ** Options: |
| 4774 | ** --dry-run | -n No changes. Just print what would happen. |
| 4775 | */ |
| 4776 | void test_without_rowid(void){ |
| 4777 | int i, j; |
| 4778 | Stmt q; |
| 4779 | Blob allSql; |
| 4780 |
+1
-2
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -2492,12 +2492,11 @@ | ||
| 2492 | 2492 | Stmt q; |
| 2493 | 2493 | Blob absBuffer = empty_blob; /* Absolute filename buffer */ |
| 2494 | 2494 | |
| 2495 | 2495 | verboseFlag = find_option("verbose","v",0)!=0; |
| 2496 | 2496 | quietFlag = find_option("quiet","q",0)!=0 || g.fQuiet; |
| 2497 | - dryRunFlag = find_option("dry-run","n",0)!=0 | |
| 2498 | - || find_option("dryrun",0,0)!=0; | |
| 2497 | + dryRunFlag = find_option("dry-run","n",0)!=0; | |
| 2499 | 2498 | zGlobList = find_option("glob", "g",1); |
| 2500 | 2499 | zGlobFile = find_option("globfile", "G",1); |
| 2501 | 2500 | |
| 2502 | 2501 | if(zGlobList && zGlobFile){ |
| 2503 | 2502 | fossil_fatal("Options -g and -G may not be used together."); |
| 2504 | 2503 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -2492,12 +2492,11 @@ | |
| 2492 | Stmt q; |
| 2493 | Blob absBuffer = empty_blob; /* Absolute filename buffer */ |
| 2494 | |
| 2495 | verboseFlag = find_option("verbose","v",0)!=0; |
| 2496 | quietFlag = find_option("quiet","q",0)!=0 || g.fQuiet; |
| 2497 | dryRunFlag = find_option("dry-run","n",0)!=0 |
| 2498 | || find_option("dryrun",0,0)!=0; |
| 2499 | zGlobList = find_option("glob", "g",1); |
| 2500 | zGlobFile = find_option("globfile", "G",1); |
| 2501 | |
| 2502 | if(zGlobList && zGlobFile){ |
| 2503 | fossil_fatal("Options -g and -G may not be used together."); |
| 2504 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -2492,12 +2492,11 @@ | |
| 2492 | Stmt q; |
| 2493 | Blob absBuffer = empty_blob; /* Absolute filename buffer */ |
| 2494 | |
| 2495 | verboseFlag = find_option("verbose","v",0)!=0; |
| 2496 | quietFlag = find_option("quiet","q",0)!=0 || g.fQuiet; |
| 2497 | dryRunFlag = find_option("dry-run","n",0)!=0; |
| 2498 | zGlobList = find_option("glob", "g",1); |
| 2499 | zGlobFile = find_option("globfile", "G",1); |
| 2500 | |
| 2501 | if(zGlobList && zGlobFile){ |
| 2502 | fossil_fatal("Options -g and -G may not be used together."); |
| 2503 |
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -3539,11 +3539,10 @@ | ||
| 3539 | 3539 | pzNewTags = find_repeatable_option("tag",0,&nTags); |
| 3540 | 3540 | pzCancelTags = find_repeatable_option("cancel",0,&nCancels); |
| 3541 | 3541 | fClose = find_option("close",0,0)!=0; |
| 3542 | 3542 | fHide = find_option("hide",0,0)!=0; |
| 3543 | 3543 | fDryRun = find_option("dry-run","n",0)!=0; |
| 3544 | - if( fDryRun==0 ) fDryRun = find_option("dryrun","n",0)!=0; | |
| 3545 | 3544 | zChngTime = find_option("date-override",0,1); |
| 3546 | 3545 | if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1); |
| 3547 | 3546 | zUserOvrd = find_option("user-override",0,1); |
| 3548 | 3547 | db_find_and_open_repository(0,0); |
| 3549 | 3548 | user_select(); |
| 3550 | 3549 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3539,11 +3539,10 @@ | |
| 3539 | pzNewTags = find_repeatable_option("tag",0,&nTags); |
| 3540 | pzCancelTags = find_repeatable_option("cancel",0,&nCancels); |
| 3541 | fClose = find_option("close",0,0)!=0; |
| 3542 | fHide = find_option("hide",0,0)!=0; |
| 3543 | fDryRun = find_option("dry-run","n",0)!=0; |
| 3544 | if( fDryRun==0 ) fDryRun = find_option("dryrun","n",0)!=0; |
| 3545 | zChngTime = find_option("date-override",0,1); |
| 3546 | if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1); |
| 3547 | zUserOvrd = find_option("user-override",0,1); |
| 3548 | db_find_and_open_repository(0,0); |
| 3549 | user_select(); |
| 3550 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -3539,11 +3539,10 @@ | |
| 3539 | pzNewTags = find_repeatable_option("tag",0,&nTags); |
| 3540 | pzCancelTags = find_repeatable_option("cancel",0,&nCancels); |
| 3541 | fClose = find_option("close",0,0)!=0; |
| 3542 | fHide = find_option("hide",0,0)!=0; |
| 3543 | fDryRun = find_option("dry-run","n",0)!=0; |
| 3544 | zChngTime = find_option("date-override",0,1); |
| 3545 | if( zChngTime==0 ) zChngTime = find_option("chngtime",0,1); |
| 3546 | zUserOvrd = find_option("user-override",0,1); |
| 3547 | db_find_and_open_repository(0,0); |
| 3548 | user_select(); |
| 3549 |
+5
-5
| --- src/patch.c | ||
| +++ src/patch.c | ||
| @@ -855,11 +855,11 @@ | ||
| 855 | 855 | ** in the current directory if DIRECTORY is omitted. Options: |
| 856 | 856 | ** |
| 857 | 857 | ** -f|--force Apply the patch even though there are unsaved |
| 858 | 858 | ** changes in the current check-out. Unsaved changes |
| 859 | 859 | ** are reverted and permanently lost. |
| 860 | -** -n|--dryrun Do nothing, but print what would have happened. | |
| 860 | +** -n|--dry-run Do nothing, but print what would have happened. | |
| 861 | 861 | ** -v|--verbose Extra output explaining what happens. |
| 862 | 862 | ** |
| 863 | 863 | ** > fossil patch diff [DIRECTORY] FILENAME |
| 864 | 864 | ** |
| 865 | 865 | ** Show a human-readable diff for the patch. All the usual |
| @@ -884,11 +884,11 @@ | ||
| 884 | 884 | ** -f|--force Apply the patch even though there are unsaved |
| 885 | 885 | ** changes in the current check-out. Unsaved |
| 886 | 886 | ** changes will be reverted and then the patch is |
| 887 | 887 | ** applied. |
| 888 | 888 | ** --fossilcmd EXE Name of the "fossil" executable on the remote |
| 889 | -** -n|--dryrun Do nothing, but print what would have happened. | |
| 889 | +** -n|--dry-run Do nothing, but print what would have happened. | |
| 890 | 890 | ** -v|--verbose Extra output explaining what happens. |
| 891 | 891 | ** |
| 892 | 892 | ** |
| 893 | 893 | ** > fossil patch pull REMOTE-CHECKOUT |
| 894 | 894 | ** |
| @@ -913,11 +913,11 @@ | ||
| 913 | 913 | zCmd = g.argv[2]; |
| 914 | 914 | n = strlen(zCmd); |
| 915 | 915 | if( strncmp(zCmd, "apply", n)==0 ){ |
| 916 | 916 | char *zIn; |
| 917 | 917 | unsigned flags = 0; |
| 918 | - if( find_option("dryrun","n",0) ) flags |= PATCH_DRYRUN; | |
| 918 | + if( find_option("dry-run","n",0) ) flags |= PATCH_DRYRUN; | |
| 919 | 919 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 920 | 920 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 921 | 921 | zIn = patch_find_patch_filename("apply"); |
| 922 | 922 | db_must_be_within_tree(); |
| 923 | 923 | patch_attach(zIn, stdin); |
| @@ -955,11 +955,11 @@ | ||
| 955 | 955 | }else |
| 956 | 956 | if( strncmp(zCmd, "pull", n)==0 ){ |
| 957 | 957 | FILE *pIn = 0; |
| 958 | 958 | unsigned flags = 0; |
| 959 | 959 | const char *zFossilCmd = find_option("fossilcmd",0,1); |
| 960 | - if( find_option("dryrun","n",0) ) flags |= PATCH_DRYRUN; | |
| 960 | + if( find_option("dry-run","n",0) ) flags |= PATCH_DRYRUN; | |
| 961 | 961 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 962 | 962 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 963 | 963 | db_must_be_within_tree(); |
| 964 | 964 | verify_all_options(); |
| 965 | 965 | pIn = patch_remote_command(flags & (~PATCH_FORCE), |
| @@ -972,11 +972,11 @@ | ||
| 972 | 972 | }else |
| 973 | 973 | if( strncmp(zCmd, "push", n)==0 ){ |
| 974 | 974 | FILE *pOut = 0; |
| 975 | 975 | unsigned flags = 0; |
| 976 | 976 | const char *zFossilCmd = find_option("fossilcmd",0,1); |
| 977 | - if( find_option("dryrun","n",0) ) flags |= PATCH_DRYRUN; | |
| 977 | + if( find_option("dry-run","n",0) ) flags |= PATCH_DRYRUN; | |
| 978 | 978 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 979 | 979 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 980 | 980 | db_must_be_within_tree(); |
| 981 | 981 | verify_all_options(); |
| 982 | 982 | pOut = patch_remote_command(flags, "push", "apply", zFossilCmd, "w"); |
| 983 | 983 |
| --- src/patch.c | |
| +++ src/patch.c | |
| @@ -855,11 +855,11 @@ | |
| 855 | ** in the current directory if DIRECTORY is omitted. Options: |
| 856 | ** |
| 857 | ** -f|--force Apply the patch even though there are unsaved |
| 858 | ** changes in the current check-out. Unsaved changes |
| 859 | ** are reverted and permanently lost. |
| 860 | ** -n|--dryrun Do nothing, but print what would have happened. |
| 861 | ** -v|--verbose Extra output explaining what happens. |
| 862 | ** |
| 863 | ** > fossil patch diff [DIRECTORY] FILENAME |
| 864 | ** |
| 865 | ** Show a human-readable diff for the patch. All the usual |
| @@ -884,11 +884,11 @@ | |
| 884 | ** -f|--force Apply the patch even though there are unsaved |
| 885 | ** changes in the current check-out. Unsaved |
| 886 | ** changes will be reverted and then the patch is |
| 887 | ** applied. |
| 888 | ** --fossilcmd EXE Name of the "fossil" executable on the remote |
| 889 | ** -n|--dryrun Do nothing, but print what would have happened. |
| 890 | ** -v|--verbose Extra output explaining what happens. |
| 891 | ** |
| 892 | ** |
| 893 | ** > fossil patch pull REMOTE-CHECKOUT |
| 894 | ** |
| @@ -913,11 +913,11 @@ | |
| 913 | zCmd = g.argv[2]; |
| 914 | n = strlen(zCmd); |
| 915 | if( strncmp(zCmd, "apply", n)==0 ){ |
| 916 | char *zIn; |
| 917 | unsigned flags = 0; |
| 918 | if( find_option("dryrun","n",0) ) flags |= PATCH_DRYRUN; |
| 919 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 920 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 921 | zIn = patch_find_patch_filename("apply"); |
| 922 | db_must_be_within_tree(); |
| 923 | patch_attach(zIn, stdin); |
| @@ -955,11 +955,11 @@ | |
| 955 | }else |
| 956 | if( strncmp(zCmd, "pull", n)==0 ){ |
| 957 | FILE *pIn = 0; |
| 958 | unsigned flags = 0; |
| 959 | const char *zFossilCmd = find_option("fossilcmd",0,1); |
| 960 | if( find_option("dryrun","n",0) ) flags |= PATCH_DRYRUN; |
| 961 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 962 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 963 | db_must_be_within_tree(); |
| 964 | verify_all_options(); |
| 965 | pIn = patch_remote_command(flags & (~PATCH_FORCE), |
| @@ -972,11 +972,11 @@ | |
| 972 | }else |
| 973 | if( strncmp(zCmd, "push", n)==0 ){ |
| 974 | FILE *pOut = 0; |
| 975 | unsigned flags = 0; |
| 976 | const char *zFossilCmd = find_option("fossilcmd",0,1); |
| 977 | if( find_option("dryrun","n",0) ) flags |= PATCH_DRYRUN; |
| 978 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 979 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 980 | db_must_be_within_tree(); |
| 981 | verify_all_options(); |
| 982 | pOut = patch_remote_command(flags, "push", "apply", zFossilCmd, "w"); |
| 983 |
| --- src/patch.c | |
| +++ src/patch.c | |
| @@ -855,11 +855,11 @@ | |
| 855 | ** in the current directory if DIRECTORY is omitted. Options: |
| 856 | ** |
| 857 | ** -f|--force Apply the patch even though there are unsaved |
| 858 | ** changes in the current check-out. Unsaved changes |
| 859 | ** are reverted and permanently lost. |
| 860 | ** -n|--dry-run Do nothing, but print what would have happened. |
| 861 | ** -v|--verbose Extra output explaining what happens. |
| 862 | ** |
| 863 | ** > fossil patch diff [DIRECTORY] FILENAME |
| 864 | ** |
| 865 | ** Show a human-readable diff for the patch. All the usual |
| @@ -884,11 +884,11 @@ | |
| 884 | ** -f|--force Apply the patch even though there are unsaved |
| 885 | ** changes in the current check-out. Unsaved |
| 886 | ** changes will be reverted and then the patch is |
| 887 | ** applied. |
| 888 | ** --fossilcmd EXE Name of the "fossil" executable on the remote |
| 889 | ** -n|--dry-run Do nothing, but print what would have happened. |
| 890 | ** -v|--verbose Extra output explaining what happens. |
| 891 | ** |
| 892 | ** |
| 893 | ** > fossil patch pull REMOTE-CHECKOUT |
| 894 | ** |
| @@ -913,11 +913,11 @@ | |
| 913 | zCmd = g.argv[2]; |
| 914 | n = strlen(zCmd); |
| 915 | if( strncmp(zCmd, "apply", n)==0 ){ |
| 916 | char *zIn; |
| 917 | unsigned flags = 0; |
| 918 | if( find_option("dry-run","n",0) ) flags |= PATCH_DRYRUN; |
| 919 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 920 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 921 | zIn = patch_find_patch_filename("apply"); |
| 922 | db_must_be_within_tree(); |
| 923 | patch_attach(zIn, stdin); |
| @@ -955,11 +955,11 @@ | |
| 955 | }else |
| 956 | if( strncmp(zCmd, "pull", n)==0 ){ |
| 957 | FILE *pIn = 0; |
| 958 | unsigned flags = 0; |
| 959 | const char *zFossilCmd = find_option("fossilcmd",0,1); |
| 960 | if( find_option("dry-run","n",0) ) flags |= PATCH_DRYRUN; |
| 961 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 962 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 963 | db_must_be_within_tree(); |
| 964 | verify_all_options(); |
| 965 | pIn = patch_remote_command(flags & (~PATCH_FORCE), |
| @@ -972,11 +972,11 @@ | |
| 972 | }else |
| 973 | if( strncmp(zCmd, "push", n)==0 ){ |
| 974 | FILE *pOut = 0; |
| 975 | unsigned flags = 0; |
| 976 | const char *zFossilCmd = find_option("fossilcmd",0,1); |
| 977 | if( find_option("dry-run","n",0) ) flags |= PATCH_DRYRUN; |
| 978 | if( find_option("verbose","v",0) ) flags |= PATCH_VERBOSE; |
| 979 | if( find_option("force","f",0) ) flags |= PATCH_FORCE; |
| 980 | db_must_be_within_tree(); |
| 981 | verify_all_options(); |
| 982 | pOut = patch_remote_command(flags, "push", "apply", zFossilCmd, "w"); |
| 983 |
+8
-8
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -282,11 +282,11 @@ | ||
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | /* |
| 285 | 285 | ** OR this value into the tagtype argument to tag_add_artifact to |
| 286 | 286 | ** cause the tag to be displayed on standard output rather than be |
| 287 | -** inserted. Used for --dryrun options and debugging. | |
| 287 | +** inserted. Used for --dry-run options and debugging. | |
| 288 | 288 | */ |
| 289 | 289 | #if INTERFACE |
| 290 | 290 | #define TAG_ADD_DRYRUN 0x04 |
| 291 | 291 | #endif |
| 292 | 292 | |
| @@ -407,11 +407,11 @@ | ||
| 407 | 407 | ** --raw Raw tag name. Ignored for |
| 408 | 408 | ** non-CHECK-IN artifacts. |
| 409 | 409 | ** --propagate Propagating tag. |
| 410 | 410 | ** --date-override DATETIME Set date and time added. |
| 411 | 411 | ** --user-override USER Name USER when adding the tag. |
| 412 | -** -n|--dryrun Display the tag text, but do not | |
| 412 | +** -n|--dry-run Display the tag text, but do not | |
| 413 | 413 | ** actually insert it into the database. |
| 414 | 414 | ** |
| 415 | 415 | ** The --date-override and --user-override options support |
| 416 | 416 | ** importing history from other SCM systems. DATETIME has |
| 417 | 417 | ** the form 'YYYY-MMM-DD HH:MM:SS'. |
| @@ -422,20 +422,20 @@ | ||
| 422 | 422 | ** |
| 423 | 423 | ** > fossil tag cancel ?--raw? TAGNAME ARTIFACT-ID |
| 424 | 424 | ** |
| 425 | 425 | ** Remove the tag TAGNAME from the artifact referenced by |
| 426 | 426 | ** ARTIFACT-ID, and also remove the propagation of the tag to |
| 427 | -** any descendants. Use the the -n|--dryrun option to see | |
| 427 | +** any descendants. Use the the -n|--dry-run option to see | |
| 428 | 428 | ** what would have happened. Certain tag name prefixes are |
| 429 | 429 | ** forbidden, as documented for the 'add' subcommand. |
| 430 | 430 | ** |
| 431 | 431 | ** Options: |
| 432 | 432 | ** --raw Raw tag name. Ignored for |
| 433 | 433 | ** non-CHECK-IN artifacts. |
| 434 | 434 | ** --date-override DATETIME Set date and time deleted. |
| 435 | 435 | ** --user-override USER Name USER when deleting the tag. |
| 436 | -** -n|--dryrun Display the control artifact, but do | |
| 436 | +** -n|--dry-run Display the control artifact, but do | |
| 437 | 437 | ** not insert it into the database. |
| 438 | 438 | ** |
| 439 | 439 | ** > fossil tag find ?OPTIONS? TAGNAME |
| 440 | 440 | ** |
| 441 | 441 | ** List all objects that use TAGNAME. |
| @@ -514,11 +514,11 @@ | ||
| 514 | 514 | const char *zDateOvrd = find_option("date-override",0,1); |
| 515 | 515 | const char *zUserOvrd = find_option("user-override",0,1); |
| 516 | 516 | const char *zTag; |
| 517 | 517 | const char *zObjId; |
| 518 | 518 | int objType; |
| 519 | - if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; | |
| 519 | + if( find_option("dry-run","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; | |
| 520 | 520 | if( g.argc!=5 && g.argc!=6 ){ |
| 521 | 521 | usage("add ?options? TAGNAME ARTIFACT-ID ?VALUE?"); |
| 522 | 522 | } |
| 523 | 523 | zTag = g.argv[3]; |
| 524 | 524 | tag_cmd_tagname_check(zTag); |
| @@ -552,11 +552,11 @@ | ||
| 552 | 552 | const char *zDateOvrd = find_option("date-override",0,1); |
| 553 | 553 | const char *zUserOvrd = find_option("user-override",0,1); |
| 554 | 554 | const char *zTag; |
| 555 | 555 | const char *zObjId; |
| 556 | 556 | int objType; |
| 557 | - if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; | |
| 557 | + if( find_option("dry-run","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; | |
| 558 | 558 | if( g.argc!=5 ){ |
| 559 | 559 | usage("cancel ?options? TAGNAME ARTIFACT-ID"); |
| 560 | 560 | } |
| 561 | 561 | zTag = g.argv[3]; |
| 562 | 562 | tag_cmd_tagname_check(zTag); |
| @@ -751,11 +751,11 @@ | ||
| 751 | 751 | ** reparenting operation, simply delete the tag. |
| 752 | 752 | ** |
| 753 | 753 | ** --test Make database entries but do not add the tag artifact. |
| 754 | 754 | ** So the reparent operation will be undone by the next |
| 755 | 755 | ** "fossil rebuild" command. |
| 756 | -** -n|--dryrun Print the tag that would have been created but do not | |
| 756 | +** -n|--dry-run Print the tag that would have been created but do not | |
| 757 | 757 | ** actually change the database in any way. |
| 758 | 758 | ** --date-override DATETIME Set the change time on the control artifact |
| 759 | 759 | ** --user-override USER Set the user name on the control artifact |
| 760 | 760 | */ |
| 761 | 761 | void reparent_cmd(void){ |
| @@ -766,11 +766,11 @@ | ||
| 766 | 766 | char *zUuid; |
| 767 | 767 | int dryRun = 0; |
| 768 | 768 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 769 | 769 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 770 | 770 | |
| 771 | - if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; | |
| 771 | + if( find_option("dry-run","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; | |
| 772 | 772 | zDateOvrd = find_option("date-override",0,1); |
| 773 | 773 | zUserOvrd = find_option("user-override",0,1); |
| 774 | 774 | db_find_and_open_repository(0, 0); |
| 775 | 775 | verify_all_options(); |
| 776 | 776 | if( g.argc<4 ){ |
| 777 | 777 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -282,11 +282,11 @@ | |
| 282 | } |
| 283 | |
| 284 | /* |
| 285 | ** OR this value into the tagtype argument to tag_add_artifact to |
| 286 | ** cause the tag to be displayed on standard output rather than be |
| 287 | ** inserted. Used for --dryrun options and debugging. |
| 288 | */ |
| 289 | #if INTERFACE |
| 290 | #define TAG_ADD_DRYRUN 0x04 |
| 291 | #endif |
| 292 | |
| @@ -407,11 +407,11 @@ | |
| 407 | ** --raw Raw tag name. Ignored for |
| 408 | ** non-CHECK-IN artifacts. |
| 409 | ** --propagate Propagating tag. |
| 410 | ** --date-override DATETIME Set date and time added. |
| 411 | ** --user-override USER Name USER when adding the tag. |
| 412 | ** -n|--dryrun Display the tag text, but do not |
| 413 | ** actually insert it into the database. |
| 414 | ** |
| 415 | ** The --date-override and --user-override options support |
| 416 | ** importing history from other SCM systems. DATETIME has |
| 417 | ** the form 'YYYY-MMM-DD HH:MM:SS'. |
| @@ -422,20 +422,20 @@ | |
| 422 | ** |
| 423 | ** > fossil tag cancel ?--raw? TAGNAME ARTIFACT-ID |
| 424 | ** |
| 425 | ** Remove the tag TAGNAME from the artifact referenced by |
| 426 | ** ARTIFACT-ID, and also remove the propagation of the tag to |
| 427 | ** any descendants. Use the the -n|--dryrun option to see |
| 428 | ** what would have happened. Certain tag name prefixes are |
| 429 | ** forbidden, as documented for the 'add' subcommand. |
| 430 | ** |
| 431 | ** Options: |
| 432 | ** --raw Raw tag name. Ignored for |
| 433 | ** non-CHECK-IN artifacts. |
| 434 | ** --date-override DATETIME Set date and time deleted. |
| 435 | ** --user-override USER Name USER when deleting the tag. |
| 436 | ** -n|--dryrun Display the control artifact, but do |
| 437 | ** not insert it into the database. |
| 438 | ** |
| 439 | ** > fossil tag find ?OPTIONS? TAGNAME |
| 440 | ** |
| 441 | ** List all objects that use TAGNAME. |
| @@ -514,11 +514,11 @@ | |
| 514 | const char *zDateOvrd = find_option("date-override",0,1); |
| 515 | const char *zUserOvrd = find_option("user-override",0,1); |
| 516 | const char *zTag; |
| 517 | const char *zObjId; |
| 518 | int objType; |
| 519 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 520 | if( g.argc!=5 && g.argc!=6 ){ |
| 521 | usage("add ?options? TAGNAME ARTIFACT-ID ?VALUE?"); |
| 522 | } |
| 523 | zTag = g.argv[3]; |
| 524 | tag_cmd_tagname_check(zTag); |
| @@ -552,11 +552,11 @@ | |
| 552 | const char *zDateOvrd = find_option("date-override",0,1); |
| 553 | const char *zUserOvrd = find_option("user-override",0,1); |
| 554 | const char *zTag; |
| 555 | const char *zObjId; |
| 556 | int objType; |
| 557 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 558 | if( g.argc!=5 ){ |
| 559 | usage("cancel ?options? TAGNAME ARTIFACT-ID"); |
| 560 | } |
| 561 | zTag = g.argv[3]; |
| 562 | tag_cmd_tagname_check(zTag); |
| @@ -751,11 +751,11 @@ | |
| 751 | ** reparenting operation, simply delete the tag. |
| 752 | ** |
| 753 | ** --test Make database entries but do not add the tag artifact. |
| 754 | ** So the reparent operation will be undone by the next |
| 755 | ** "fossil rebuild" command. |
| 756 | ** -n|--dryrun Print the tag that would have been created but do not |
| 757 | ** actually change the database in any way. |
| 758 | ** --date-override DATETIME Set the change time on the control artifact |
| 759 | ** --user-override USER Set the user name on the control artifact |
| 760 | */ |
| 761 | void reparent_cmd(void){ |
| @@ -766,11 +766,11 @@ | |
| 766 | char *zUuid; |
| 767 | int dryRun = 0; |
| 768 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 769 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 770 | |
| 771 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 772 | zDateOvrd = find_option("date-override",0,1); |
| 773 | zUserOvrd = find_option("user-override",0,1); |
| 774 | db_find_and_open_repository(0, 0); |
| 775 | verify_all_options(); |
| 776 | if( g.argc<4 ){ |
| 777 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -282,11 +282,11 @@ | |
| 282 | } |
| 283 | |
| 284 | /* |
| 285 | ** OR this value into the tagtype argument to tag_add_artifact to |
| 286 | ** cause the tag to be displayed on standard output rather than be |
| 287 | ** inserted. Used for --dry-run options and debugging. |
| 288 | */ |
| 289 | #if INTERFACE |
| 290 | #define TAG_ADD_DRYRUN 0x04 |
| 291 | #endif |
| 292 | |
| @@ -407,11 +407,11 @@ | |
| 407 | ** --raw Raw tag name. Ignored for |
| 408 | ** non-CHECK-IN artifacts. |
| 409 | ** --propagate Propagating tag. |
| 410 | ** --date-override DATETIME Set date and time added. |
| 411 | ** --user-override USER Name USER when adding the tag. |
| 412 | ** -n|--dry-run Display the tag text, but do not |
| 413 | ** actually insert it into the database. |
| 414 | ** |
| 415 | ** The --date-override and --user-override options support |
| 416 | ** importing history from other SCM systems. DATETIME has |
| 417 | ** the form 'YYYY-MMM-DD HH:MM:SS'. |
| @@ -422,20 +422,20 @@ | |
| 422 | ** |
| 423 | ** > fossil tag cancel ?--raw? TAGNAME ARTIFACT-ID |
| 424 | ** |
| 425 | ** Remove the tag TAGNAME from the artifact referenced by |
| 426 | ** ARTIFACT-ID, and also remove the propagation of the tag to |
| 427 | ** any descendants. Use the the -n|--dry-run option to see |
| 428 | ** what would have happened. Certain tag name prefixes are |
| 429 | ** forbidden, as documented for the 'add' subcommand. |
| 430 | ** |
| 431 | ** Options: |
| 432 | ** --raw Raw tag name. Ignored for |
| 433 | ** non-CHECK-IN artifacts. |
| 434 | ** --date-override DATETIME Set date and time deleted. |
| 435 | ** --user-override USER Name USER when deleting the tag. |
| 436 | ** -n|--dry-run Display the control artifact, but do |
| 437 | ** not insert it into the database. |
| 438 | ** |
| 439 | ** > fossil tag find ?OPTIONS? TAGNAME |
| 440 | ** |
| 441 | ** List all objects that use TAGNAME. |
| @@ -514,11 +514,11 @@ | |
| 514 | const char *zDateOvrd = find_option("date-override",0,1); |
| 515 | const char *zUserOvrd = find_option("user-override",0,1); |
| 516 | const char *zTag; |
| 517 | const char *zObjId; |
| 518 | int objType; |
| 519 | if( find_option("dry-run","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 520 | if( g.argc!=5 && g.argc!=6 ){ |
| 521 | usage("add ?options? TAGNAME ARTIFACT-ID ?VALUE?"); |
| 522 | } |
| 523 | zTag = g.argv[3]; |
| 524 | tag_cmd_tagname_check(zTag); |
| @@ -552,11 +552,11 @@ | |
| 552 | const char *zDateOvrd = find_option("date-override",0,1); |
| 553 | const char *zUserOvrd = find_option("user-override",0,1); |
| 554 | const char *zTag; |
| 555 | const char *zObjId; |
| 556 | int objType; |
| 557 | if( find_option("dry-run","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 558 | if( g.argc!=5 ){ |
| 559 | usage("cancel ?options? TAGNAME ARTIFACT-ID"); |
| 560 | } |
| 561 | zTag = g.argv[3]; |
| 562 | tag_cmd_tagname_check(zTag); |
| @@ -751,11 +751,11 @@ | |
| 751 | ** reparenting operation, simply delete the tag. |
| 752 | ** |
| 753 | ** --test Make database entries but do not add the tag artifact. |
| 754 | ** So the reparent operation will be undone by the next |
| 755 | ** "fossil rebuild" command. |
| 756 | ** -n|--dry-run Print the tag that would have been created but do not |
| 757 | ** actually change the database in any way. |
| 758 | ** --date-override DATETIME Set the change time on the control artifact |
| 759 | ** --user-override USER Set the user name on the control artifact |
| 760 | */ |
| 761 | void reparent_cmd(void){ |
| @@ -766,11 +766,11 @@ | |
| 766 | char *zUuid; |
| 767 | int dryRun = 0; |
| 768 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 769 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 770 | |
| 771 | if( find_option("dry-run","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 772 | zDateOvrd = find_option("date-override",0,1); |
| 773 | zUserOvrd = find_option("user-override",0,1); |
| 774 | db_find_and_open_repository(0, 0); |
| 775 | verify_all_options(); |
| 776 | if( g.argc<4 ){ |
| 777 |
+3
-3
| --- src/unversioned.c | ||
| +++ src/unversioned.c | ||
| @@ -200,11 +200,11 @@ | ||
| 200 | 200 | */ |
| 201 | 201 | static int unversioned_sync_flags(unsigned syncFlags){ |
| 202 | 202 | if( find_option("verbose","v",0)!=0 ){ |
| 203 | 203 | syncFlags |= SYNC_UV_TRACE | SYNC_VERBOSE; |
| 204 | 204 | } |
| 205 | - if( find_option("dryrun","n",0)!=0 ){ | |
| 205 | + if( find_option("dry-run","n",0)!=0 ){ | |
| 206 | 206 | syncFlags |= SYNC_UV_DRYRUN | SYNC_UV_TRACE | SYNC_VERBOSE; |
| 207 | 207 | } |
| 208 | 208 | return syncFlags; |
| 209 | 209 | } |
| 210 | 210 | |
| @@ -264,11 +264,11 @@ | ||
| 264 | 264 | ** local repository to match the remote repository |
| 265 | 265 | ** URL. |
| 266 | 266 | ** |
| 267 | 267 | ** Options: |
| 268 | 268 | ** -v|--verbose Extra diagnostic output |
| 269 | -** -n|--dryrun Show what would have happened | |
| 269 | +** -n|--dry-run Show what would have happened | |
| 270 | 270 | ** |
| 271 | 271 | ** remove|rm|delete FILE ... |
| 272 | 272 | ** Remove unversioned files from the local repository. |
| 273 | 273 | ** Changes are not pushed to other repositories until |
| 274 | 274 | ** the next sync. Options: |
| @@ -281,11 +281,11 @@ | ||
| 281 | 281 | ** of each file is propagated to all repositories and |
| 282 | 282 | ** all prior versions are permanently forgotten. |
| 283 | 283 | ** |
| 284 | 284 | ** Options: |
| 285 | 285 | ** -v|--verbose Extra diagnostic output |
| 286 | -** -n|--dryrun Show what would have happened | |
| 286 | +** -n|--dry-run Show what would have happened | |
| 287 | 287 | ** |
| 288 | 288 | ** touch FILE ... Update the TIMESTAMP on all of the listed files |
| 289 | 289 | ** |
| 290 | 290 | ** Options: |
| 291 | 291 | ** |
| 292 | 292 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -200,11 +200,11 @@ | |
| 200 | */ |
| 201 | static int unversioned_sync_flags(unsigned syncFlags){ |
| 202 | if( find_option("verbose","v",0)!=0 ){ |
| 203 | syncFlags |= SYNC_UV_TRACE | SYNC_VERBOSE; |
| 204 | } |
| 205 | if( find_option("dryrun","n",0)!=0 ){ |
| 206 | syncFlags |= SYNC_UV_DRYRUN | SYNC_UV_TRACE | SYNC_VERBOSE; |
| 207 | } |
| 208 | return syncFlags; |
| 209 | } |
| 210 | |
| @@ -264,11 +264,11 @@ | |
| 264 | ** local repository to match the remote repository |
| 265 | ** URL. |
| 266 | ** |
| 267 | ** Options: |
| 268 | ** -v|--verbose Extra diagnostic output |
| 269 | ** -n|--dryrun Show what would have happened |
| 270 | ** |
| 271 | ** remove|rm|delete FILE ... |
| 272 | ** Remove unversioned files from the local repository. |
| 273 | ** Changes are not pushed to other repositories until |
| 274 | ** the next sync. Options: |
| @@ -281,11 +281,11 @@ | |
| 281 | ** of each file is propagated to all repositories and |
| 282 | ** all prior versions are permanently forgotten. |
| 283 | ** |
| 284 | ** Options: |
| 285 | ** -v|--verbose Extra diagnostic output |
| 286 | ** -n|--dryrun Show what would have happened |
| 287 | ** |
| 288 | ** touch FILE ... Update the TIMESTAMP on all of the listed files |
| 289 | ** |
| 290 | ** Options: |
| 291 | ** |
| 292 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -200,11 +200,11 @@ | |
| 200 | */ |
| 201 | static int unversioned_sync_flags(unsigned syncFlags){ |
| 202 | if( find_option("verbose","v",0)!=0 ){ |
| 203 | syncFlags |= SYNC_UV_TRACE | SYNC_VERBOSE; |
| 204 | } |
| 205 | if( find_option("dry-run","n",0)!=0 ){ |
| 206 | syncFlags |= SYNC_UV_DRYRUN | SYNC_UV_TRACE | SYNC_VERBOSE; |
| 207 | } |
| 208 | return syncFlags; |
| 209 | } |
| 210 | |
| @@ -264,11 +264,11 @@ | |
| 264 | ** local repository to match the remote repository |
| 265 | ** URL. |
| 266 | ** |
| 267 | ** Options: |
| 268 | ** -v|--verbose Extra diagnostic output |
| 269 | ** -n|--dry-run Show what would have happened |
| 270 | ** |
| 271 | ** remove|rm|delete FILE ... |
| 272 | ** Remove unversioned files from the local repository. |
| 273 | ** Changes are not pushed to other repositories until |
| 274 | ** the next sync. Options: |
| @@ -281,11 +281,11 @@ | |
| 281 | ** of each file is propagated to all repositories and |
| 282 | ** all prior versions are permanently forgotten. |
| 283 | ** |
| 284 | ** Options: |
| 285 | ** -v|--verbose Extra diagnostic output |
| 286 | ** -n|--dry-run Show what would have happened |
| 287 | ** |
| 288 | ** touch FILE ... Update the TIMESTAMP on all of the listed files |
| 289 | ** |
| 290 | ** Options: |
| 291 | ** |
| 292 |