Fossil SCM

When the "autoconf" setting contains "all", then all remotes are synced using the "fossil sync" command.

drh 2024-01-25 19:09 trunk
Commit 808193e6121f5f2ae47c67268a7a011d5477a9a5d1baab1f132873ffa63ef9a4
2 files changed +3 +6
+3
--- src/db.c
+++ src/db.c
@@ -4484,10 +4484,13 @@
44844484
** forks.
44854485
**
44864486
** The syntax is a comma-separated list of VALUE and COMMAND=VALUE entries.
44874487
** A plain VALUE entry is the default that is used if no COMMAND matches.
44884488
** Otherwise, the VALUE of the matching command is used.
4489
+**
4490
+** The "all" value is special in that it applies to the "sync" command in
4491
+** addition to "commit", "merge", "open", and "update".
44894492
*/
44904493
/*
44914494
** SETTING: autosync-tries width=16 default=1
44924495
** If autosync is enabled setting this to a value greater
44934496
** than zero will cause autosync to try no more than this
44944497
--- src/db.c
+++ src/db.c
@@ -4484,10 +4484,13 @@
4484 ** forks.
4485 **
4486 ** The syntax is a comma-separated list of VALUE and COMMAND=VALUE entries.
4487 ** A plain VALUE entry is the default that is used if no COMMAND matches.
4488 ** Otherwise, the VALUE of the matching command is used.
 
 
 
4489 */
4490 /*
4491 ** SETTING: autosync-tries width=16 default=1
4492 ** If autosync is enabled setting this to a value greater
4493 ** than zero will cause autosync to try no more than this
4494
--- src/db.c
+++ src/db.c
@@ -4484,10 +4484,13 @@
4484 ** forks.
4485 **
4486 ** The syntax is a comma-separated list of VALUE and COMMAND=VALUE entries.
4487 ** A plain VALUE entry is the default that is used if no COMMAND matches.
4488 ** Otherwise, the VALUE of the matching command is used.
4489 **
4490 ** The "all" value is special in that it applies to the "sync" command in
4491 ** addition to "commit", "merge", "open", and "update".
4492 */
4493 /*
4494 ** SETTING: autosync-tries width=16 default=1
4495 ** If autosync is enabled setting this to a value greater
4496 ** than zero will cause autosync to try no more than this
4497
+6
--- src/sync.c
+++ src/sync.c
@@ -303,10 +303,16 @@
303303
usage("URL");
304304
}
305305
user_select();
306306
url_enable_proxy("via proxy: ");
307307
*pConfigFlags |= configSync;
308
+ if( (*pSyncFlags & SYNC_ALLURL)==0 ){
309
+ const char *zAutosync = db_get_for_subsystem("autosync", "sync");
310
+ if( sqlite3_strglob("*all*", zAutosync)==0 ){
311
+ *pSyncFlags |= SYNC_ALLURL;
312
+ }
313
+ }
308314
}
309315
310316
311317
/*
312318
** COMMAND: pull
313319
--- src/sync.c
+++ src/sync.c
@@ -303,10 +303,16 @@
303 usage("URL");
304 }
305 user_select();
306 url_enable_proxy("via proxy: ");
307 *pConfigFlags |= configSync;
 
 
 
 
 
 
308 }
309
310
311 /*
312 ** COMMAND: pull
313
--- src/sync.c
+++ src/sync.c
@@ -303,10 +303,16 @@
303 usage("URL");
304 }
305 user_select();
306 url_enable_proxy("via proxy: ");
307 *pConfigFlags |= configSync;
308 if( (*pSyncFlags & SYNC_ALLURL)==0 ){
309 const char *zAutosync = db_get_for_subsystem("autosync", "sync");
310 if( sqlite3_strglob("*all*", zAutosync)==0 ){
311 *pSyncFlags |= SYNC_ALLURL;
312 }
313 }
314 }
315
316
317 /*
318 ** COMMAND: pull
319

Keyboard Shortcuts

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