Fossil SCM
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.
Commit
949b321b26cdbcb3a89332bf4d9c791bc10ea09762364e657cd47070cdc9b75e
Parent
808193e6121f5f2…
1 file changed
+1
-1
+1
-1
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -303,11 +303,11 @@ | ||
| 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 ){ | |
| 308 | + if( (*pSyncFlags & SYNC_ALLURL)==0 && zUrl==0 ){ | |
| 309 | 309 | const char *zAutosync = db_get_for_subsystem("autosync", "sync"); |
| 310 | 310 | if( sqlite3_strglob("*all*", zAutosync)==0 ){ |
| 311 | 311 | *pSyncFlags |= SYNC_ALLURL; |
| 312 | 312 | } |
| 313 | 313 | } |
| 314 | 314 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -303,11 +303,11 @@ | |
| 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 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -303,11 +303,11 @@ | |
| 303 | usage("URL"); |
| 304 | } |
| 305 | user_select(); |
| 306 | url_enable_proxy("via proxy: "); |
| 307 | *pConfigFlags |= configSync; |
| 308 | if( (*pSyncFlags & SYNC_ALLURL)==0 && zUrl==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 |