Fossil SCM
For the 'all' command, accept any of (set, setting, settings) for the settings command, per /chat discussion.
Commit
939e8c4076a0ff95751366583eb9f68c80856c7206eefe511cb14645341f2698
Parent
d90990701db3db6…
1 file changed
+6
-4
+6
-4
| --- src/allrepo.c | ||
| +++ src/allrepo.c | ||
| @@ -118,11 +118,11 @@ | ||
| 118 | 118 | ** repack Look for extra compression in all repositories. |
| 119 | 119 | ** |
| 120 | 120 | ** sync Run a "sync" on all repositories. Only the --verbose |
| 121 | 121 | ** and --unversioned and --share-links options are supported. |
| 122 | 122 | ** |
| 123 | -** set Run the "setting" or "set" commands on all repositories. | |
| 123 | +** set[tings] Run the "settings" command on all repositories. | |
| 124 | 124 | ** This command is useful for settings like "max-loadavg" which |
| 125 | 125 | ** you usually want to be the same across all repositories |
| 126 | 126 | ** on a server. |
| 127 | 127 | ** |
| 128 | 128 | ** unset Run the "unset" command on all repositories |
| @@ -313,12 +313,14 @@ | ||
| 313 | 313 | }else{ |
| 314 | 314 | usage("remote ?config-data|list|ls?"); |
| 315 | 315 | } |
| 316 | 316 | }else if( fossil_strcmp(zCmd, "repack")==0 ){ |
| 317 | 317 | zCmd = "repack"; |
| 318 | - }else if( fossil_strcmp(zCmd, "setting")==0 ){ | |
| 319 | - zCmd = "setting -R"; | |
| 318 | + }else if( fossil_strcmp(zCmd, "set")==0 | |
| 319 | + || fossil_strcmp(zCmd, "setting")==0 | |
| 320 | + || fossil_strcmp(zCmd, "settings")==0 ){ | |
| 321 | + zCmd = "settings -R"; | |
| 320 | 322 | collect_argv(&extra, 3); |
| 321 | 323 | }else if( fossil_strcmp(zCmd, "unset")==0 ){ |
| 322 | 324 | zCmd = "unset -R"; |
| 323 | 325 | collect_argv(&extra, 3); |
| 324 | 326 | }else if( fossil_strcmp(zCmd, "fts-config")==0 ){ |
| @@ -424,11 +426,11 @@ | ||
| 424 | 426 | collect_argv(&extra, 3); |
| 425 | 427 | }else{ |
| 426 | 428 | fossil_fatal("\"all\" subcommand should be one of: " |
| 427 | 429 | "add cache changes clean dbstat extras fts-config git ignore " |
| 428 | 430 | "info list ls pull push rebuild remote " |
| 429 | - "server setting sync ui unset whatis"); | |
| 431 | + "server settings sync ui unset whatis"); | |
| 430 | 432 | } |
| 431 | 433 | verify_all_options(); |
| 432 | 434 | db_multi_exec("CREATE TEMP TABLE repolist(name,tag);"); |
| 433 | 435 | if( useCheckouts ){ |
| 434 | 436 | db_multi_exec( |
| 435 | 437 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -118,11 +118,11 @@ | |
| 118 | ** repack Look for extra compression in all repositories. |
| 119 | ** |
| 120 | ** sync Run a "sync" on all repositories. Only the --verbose |
| 121 | ** and --unversioned and --share-links options are supported. |
| 122 | ** |
| 123 | ** set Run the "setting" or "set" commands on all repositories. |
| 124 | ** This command is useful for settings like "max-loadavg" which |
| 125 | ** you usually want to be the same across all repositories |
| 126 | ** on a server. |
| 127 | ** |
| 128 | ** unset Run the "unset" command on all repositories |
| @@ -313,12 +313,14 @@ | |
| 313 | }else{ |
| 314 | usage("remote ?config-data|list|ls?"); |
| 315 | } |
| 316 | }else if( fossil_strcmp(zCmd, "repack")==0 ){ |
| 317 | zCmd = "repack"; |
| 318 | }else if( fossil_strcmp(zCmd, "setting")==0 ){ |
| 319 | zCmd = "setting -R"; |
| 320 | collect_argv(&extra, 3); |
| 321 | }else if( fossil_strcmp(zCmd, "unset")==0 ){ |
| 322 | zCmd = "unset -R"; |
| 323 | collect_argv(&extra, 3); |
| 324 | }else if( fossil_strcmp(zCmd, "fts-config")==0 ){ |
| @@ -424,11 +426,11 @@ | |
| 424 | collect_argv(&extra, 3); |
| 425 | }else{ |
| 426 | fossil_fatal("\"all\" subcommand should be one of: " |
| 427 | "add cache changes clean dbstat extras fts-config git ignore " |
| 428 | "info list ls pull push rebuild remote " |
| 429 | "server setting sync ui unset whatis"); |
| 430 | } |
| 431 | verify_all_options(); |
| 432 | db_multi_exec("CREATE TEMP TABLE repolist(name,tag);"); |
| 433 | if( useCheckouts ){ |
| 434 | db_multi_exec( |
| 435 |
| --- src/allrepo.c | |
| +++ src/allrepo.c | |
| @@ -118,11 +118,11 @@ | |
| 118 | ** repack Look for extra compression in all repositories. |
| 119 | ** |
| 120 | ** sync Run a "sync" on all repositories. Only the --verbose |
| 121 | ** and --unversioned and --share-links options are supported. |
| 122 | ** |
| 123 | ** set[tings] Run the "settings" command on all repositories. |
| 124 | ** This command is useful for settings like "max-loadavg" which |
| 125 | ** you usually want to be the same across all repositories |
| 126 | ** on a server. |
| 127 | ** |
| 128 | ** unset Run the "unset" command on all repositories |
| @@ -313,12 +313,14 @@ | |
| 313 | }else{ |
| 314 | usage("remote ?config-data|list|ls?"); |
| 315 | } |
| 316 | }else if( fossil_strcmp(zCmd, "repack")==0 ){ |
| 317 | zCmd = "repack"; |
| 318 | }else if( fossil_strcmp(zCmd, "set")==0 |
| 319 | || fossil_strcmp(zCmd, "setting")==0 |
| 320 | || fossil_strcmp(zCmd, "settings")==0 ){ |
| 321 | zCmd = "settings -R"; |
| 322 | collect_argv(&extra, 3); |
| 323 | }else if( fossil_strcmp(zCmd, "unset")==0 ){ |
| 324 | zCmd = "unset -R"; |
| 325 | collect_argv(&extra, 3); |
| 326 | }else if( fossil_strcmp(zCmd, "fts-config")==0 ){ |
| @@ -424,11 +426,11 @@ | |
| 426 | collect_argv(&extra, 3); |
| 427 | }else{ |
| 428 | fossil_fatal("\"all\" subcommand should be one of: " |
| 429 | "add cache changes clean dbstat extras fts-config git ignore " |
| 430 | "info list ls pull push rebuild remote " |
| 431 | "server settings sync ui unset whatis"); |
| 432 | } |
| 433 | verify_all_options(); |
| 434 | db_multi_exec("CREATE TEMP TABLE repolist(name,tag);"); |
| 435 | if( useCheckouts ){ |
| 436 | db_multi_exec( |
| 437 |