Fossil SCM
When the "autoconf" setting contains "all", then all remotes are synced using the "fossil sync" command.
Commit
808193e6121f5f2ae47c67268a7a011d5477a9a5d1baab1f132873ffa63ef9a4
Parent
805c93147956957…
2 files changed
+3
+6
M
src/db.c
+3
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -4484,10 +4484,13 @@ | ||
| 4484 | 4484 | ** forks. |
| 4485 | 4485 | ** |
| 4486 | 4486 | ** The syntax is a comma-separated list of VALUE and COMMAND=VALUE entries. |
| 4487 | 4487 | ** A plain VALUE entry is the default that is used if no COMMAND matches. |
| 4488 | 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". | |
| 4489 | 4492 | */ |
| 4490 | 4493 | /* |
| 4491 | 4494 | ** SETTING: autosync-tries width=16 default=1 |
| 4492 | 4495 | ** If autosync is enabled setting this to a value greater |
| 4493 | 4496 | ** than zero will cause autosync to try no more than this |
| 4494 | 4497 |
| --- 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 @@ | ||
| 303 | 303 | usage("URL"); |
| 304 | 304 | } |
| 305 | 305 | user_select(); |
| 306 | 306 | url_enable_proxy("via proxy: "); |
| 307 | 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 | + } | |
| 308 | 314 | } |
| 309 | 315 | |
| 310 | 316 | |
| 311 | 317 | /* |
| 312 | 318 | ** COMMAND: pull |
| 313 | 319 |
| --- 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 |