Fossil SCM

For the 'all' command, accept any of (set, setting, settings) for the settings command, per /chat discussion.

stephan 2024-07-30 12:35 trunk
Commit 939e8c4076a0ff95751366583eb9f68c80856c7206eefe511cb14645341f2698
1 file changed +6 -4
+6 -4
--- src/allrepo.c
+++ src/allrepo.c
@@ -118,11 +118,11 @@
118118
** repack Look for extra compression in all repositories.
119119
**
120120
** sync Run a "sync" on all repositories. Only the --verbose
121121
** and --unversioned and --share-links options are supported.
122122
**
123
-** set Run the "setting" or "set" commands on all repositories.
123
+** set[tings] Run the "settings" command on all repositories.
124124
** This command is useful for settings like "max-loadavg" which
125125
** you usually want to be the same across all repositories
126126
** on a server.
127127
**
128128
** unset Run the "unset" command on all repositories
@@ -313,12 +313,14 @@
313313
}else{
314314
usage("remote ?config-data|list|ls?");
315315
}
316316
}else if( fossil_strcmp(zCmd, "repack")==0 ){
317317
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";
320322
collect_argv(&extra, 3);
321323
}else if( fossil_strcmp(zCmd, "unset")==0 ){
322324
zCmd = "unset -R";
323325
collect_argv(&extra, 3);
324326
}else if( fossil_strcmp(zCmd, "fts-config")==0 ){
@@ -424,11 +426,11 @@
424426
collect_argv(&extra, 3);
425427
}else{
426428
fossil_fatal("\"all\" subcommand should be one of: "
427429
"add cache changes clean dbstat extras fts-config git ignore "
428430
"info list ls pull push rebuild remote "
429
- "server setting sync ui unset whatis");
431
+ "server settings sync ui unset whatis");
430432
}
431433
verify_all_options();
432434
db_multi_exec("CREATE TEMP TABLE repolist(name,tag);");
433435
if( useCheckouts ){
434436
db_multi_exec(
435437
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button