Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | When the "autosync" setting contains "all", then all remotes are synced using the "fossil sync" command. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
808193e6121f5f2ae47c67268a7a011d |
| User & Date: | drh 2024-01-25 19:09:32.008 |
| Original Comment: | When the "autoconf" setting contains "all", then all remotes are synced using the "fossil sync" command. |
Context
|
2024-01-27
| ||
| 16:27 | If the "autoconf" setting is set to "all" and the "fossil sync" command is run with a URL argument, then only sync with that one URL rather than syncing with all remotes. check-in: 949b321b26 user: drh tags: trunk | |
|
2024-01-25
| ||
| 19:09 | When the "autosync" setting contains "all", then all remotes are synced using the "fossil sync" command. check-in: 808193e612 user: drh tags: trunk | |
| 14:47 | Set the local bin path on SSH calls for "fossil sync", as is already done in [8cb116407933bb3b] for "fossil ui" and "fossil patch". check-in: 805c931479 user: drh tags: trunk | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 | ** off,commit=pullonly Do not autosync, except do a pull before each ** "commit", presumably to avoid undesirable ** forks. ** ** The syntax is a comma-separated list of VALUE and COMMAND=VALUE entries. ** A plain VALUE entry is the default that is used if no COMMAND matches. ** Otherwise, the VALUE of the matching command is used. */ /* ** SETTING: autosync-tries width=16 default=1 ** If autosync is enabled setting this to a value greater ** than zero will cause autosync to try no more than this ** number of attempts if there is a sync failure. */ | > > > | 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 | ** off,commit=pullonly Do not autosync, except do a pull before each ** "commit", presumably to avoid undesirable ** forks. ** ** The syntax is a comma-separated list of VALUE and COMMAND=VALUE entries. ** A plain VALUE entry is the default that is used if no COMMAND matches. ** Otherwise, the VALUE of the matching command is used. ** ** The "all" value is special in that it applies to the "sync" command in ** addition to "commit", "merge", "open", and "update". */ /* ** SETTING: autosync-tries width=16 default=1 ** If autosync is enabled setting this to a value greater ** than zero will cause autosync to try no more than this ** number of attempts if there is a sync failure. */ |
| ︙ | ︙ |
Changes to src/sync.c.
| ︙ | ︙ | |||
301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
if( g.url.protocol==0 ){
if( urlOptional ) fossil_exit(0);
usage("URL");
}
user_select();
url_enable_proxy("via proxy: ");
*pConfigFlags |= configSync;
}
/*
** COMMAND: pull
**
** Usage: %fossil pull ?URL? ?options?
| > > > > > > | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
if( g.url.protocol==0 ){
if( urlOptional ) fossil_exit(0);
usage("URL");
}
user_select();
url_enable_proxy("via proxy: ");
*pConfigFlags |= configSync;
if( (*pSyncFlags & SYNC_ALLURL)==0 ){
const char *zAutosync = db_get_for_subsystem("autosync", "sync");
if( sqlite3_strglob("*all*", zAutosync)==0 ){
*pSyncFlags |= SYNC_ALLURL;
}
}
}
/*
** COMMAND: pull
**
** Usage: %fossil pull ?URL? ?options?
|
| ︙ | ︙ |