Fossil SCM
The --share-links option seems to be causing no end of confusion. So we'll just make it undocumented and perhaps remove it or document it properly later.
Commit
0a91005e3514633abf39374ecd57fa6f6fc40b2ed429461406f9d9928b8bed07
Parent
f0fa7f21f864b6f…
2 files changed
+3
-2
-4
+3
-2
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -232,10 +232,13 @@ | ||
| 232 | 232 | *pSyncFlags |= SYNC_NOHTTPCOMPRESS; |
| 233 | 233 | } |
| 234 | 234 | if( find_option("all",0,0)!=0 ){ |
| 235 | 235 | *pSyncFlags |= SYNC_ALLURL; |
| 236 | 236 | } |
| 237 | + | |
| 238 | + /* Undocumented option to cause links transitive links to other | |
| 239 | + ** repositories to be shared */ | |
| 237 | 240 | if( ((*pSyncFlags) & SYNC_PULL)!=0 |
| 238 | 241 | && find_option("share-links",0,0)!=0 |
| 239 | 242 | ){ |
| 240 | 243 | *pSyncFlags |= SYNC_SHARE_LINKS; |
| 241 | 244 | } |
| @@ -319,11 +322,10 @@ | ||
| 319 | 322 | ** --once Do not remember URL for subsequent syncs |
| 320 | 323 | ** --private Pull private branches too |
| 321 | 324 | ** --project-code CODE Use CODE as the project code |
| 322 | 325 | ** --proxy PROXY Use the specified HTTP proxy |
| 323 | 326 | ** -R|--repository REPO Local repository to pull into |
| 324 | -** --share-links Share links to mirror repos | |
| 325 | 327 | ** --ssl-identity FILE Local SSL credentials, if requested by remote |
| 326 | 328 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 327 | 329 | ** --transport-command CMD Use external command CMD to move messages |
| 328 | 330 | ** between client and server |
| 329 | 331 | ** -v|--verbose Additional (debugging) output |
| @@ -422,11 +424,10 @@ | ||
| 422 | 424 | ** --no-http-compression Do not compress HTTP traffic |
| 423 | 425 | ** --once Do not remember URL for subsequent syncs |
| 424 | 426 | ** --proxy PROXY Use the specified HTTP proxy |
| 425 | 427 | ** --private Sync private branches too |
| 426 | 428 | ** -R|--repository REPO Local repository to sync with |
| 427 | -** --share-links Share links to mirror repos | |
| 428 | 429 | ** --ssl-identity FILE Local SSL credentials, if requested by remote |
| 429 | 430 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 430 | 431 | ** --transport-command CMD Use external command CMD to move message |
| 431 | 432 | ** between the client and the server |
| 432 | 433 | ** -u|--unversioned Also sync unversioned content |
| 433 | 434 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -232,10 +232,13 @@ | |
| 232 | *pSyncFlags |= SYNC_NOHTTPCOMPRESS; |
| 233 | } |
| 234 | if( find_option("all",0,0)!=0 ){ |
| 235 | *pSyncFlags |= SYNC_ALLURL; |
| 236 | } |
| 237 | if( ((*pSyncFlags) & SYNC_PULL)!=0 |
| 238 | && find_option("share-links",0,0)!=0 |
| 239 | ){ |
| 240 | *pSyncFlags |= SYNC_SHARE_LINKS; |
| 241 | } |
| @@ -319,11 +322,10 @@ | |
| 319 | ** --once Do not remember URL for subsequent syncs |
| 320 | ** --private Pull private branches too |
| 321 | ** --project-code CODE Use CODE as the project code |
| 322 | ** --proxy PROXY Use the specified HTTP proxy |
| 323 | ** -R|--repository REPO Local repository to pull into |
| 324 | ** --share-links Share links to mirror repos |
| 325 | ** --ssl-identity FILE Local SSL credentials, if requested by remote |
| 326 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 327 | ** --transport-command CMD Use external command CMD to move messages |
| 328 | ** between client and server |
| 329 | ** -v|--verbose Additional (debugging) output |
| @@ -422,11 +424,10 @@ | |
| 422 | ** --no-http-compression Do not compress HTTP traffic |
| 423 | ** --once Do not remember URL for subsequent syncs |
| 424 | ** --proxy PROXY Use the specified HTTP proxy |
| 425 | ** --private Sync private branches too |
| 426 | ** -R|--repository REPO Local repository to sync with |
| 427 | ** --share-links Share links to mirror repos |
| 428 | ** --ssl-identity FILE Local SSL credentials, if requested by remote |
| 429 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 430 | ** --transport-command CMD Use external command CMD to move message |
| 431 | ** between the client and the server |
| 432 | ** -u|--unversioned Also sync unversioned content |
| 433 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -232,10 +232,13 @@ | |
| 232 | *pSyncFlags |= SYNC_NOHTTPCOMPRESS; |
| 233 | } |
| 234 | if( find_option("all",0,0)!=0 ){ |
| 235 | *pSyncFlags |= SYNC_ALLURL; |
| 236 | } |
| 237 | |
| 238 | /* Undocumented option to cause links transitive links to other |
| 239 | ** repositories to be shared */ |
| 240 | if( ((*pSyncFlags) & SYNC_PULL)!=0 |
| 241 | && find_option("share-links",0,0)!=0 |
| 242 | ){ |
| 243 | *pSyncFlags |= SYNC_SHARE_LINKS; |
| 244 | } |
| @@ -319,11 +322,10 @@ | |
| 322 | ** --once Do not remember URL for subsequent syncs |
| 323 | ** --private Pull private branches too |
| 324 | ** --project-code CODE Use CODE as the project code |
| 325 | ** --proxy PROXY Use the specified HTTP proxy |
| 326 | ** -R|--repository REPO Local repository to pull into |
| 327 | ** --ssl-identity FILE Local SSL credentials, if requested by remote |
| 328 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 329 | ** --transport-command CMD Use external command CMD to move messages |
| 330 | ** between client and server |
| 331 | ** -v|--verbose Additional (debugging) output |
| @@ -422,11 +424,10 @@ | |
| 424 | ** --no-http-compression Do not compress HTTP traffic |
| 425 | ** --once Do not remember URL for subsequent syncs |
| 426 | ** --proxy PROXY Use the specified HTTP proxy |
| 427 | ** --private Sync private branches too |
| 428 | ** -R|--repository REPO Local repository to sync with |
| 429 | ** --ssl-identity FILE Local SSL credentials, if requested by remote |
| 430 | ** --ssh-command SSH Use SSH as the "ssh" command |
| 431 | ** --transport-command CMD Use external command CMD to move message |
| 432 | ** between the client and the server |
| 433 | ** -u|--unversioned Also sync unversioned content |
| 434 |
-4
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -33,14 +33,10 @@ | ||
| 33 | 33 | * The [/help?cmd=/ext|/ext page] generates the SERVER_SOFTWARE environment |
| 34 | 34 | variable for clients. |
| 35 | 35 | * Fix the REQUEST_URI [/doc/trunk/www/aboutcgi.wiki#cgivar|CGI variable] such |
| 36 | 36 | that it includes the query string. This is how most other systems understand |
| 37 | 37 | REQUEST_URI. |
| 38 | - * Added the --share-links option to [/help?cmd=sync|fossil sync] and | |
| 39 | - [/help?cmd=pull|fossil pull]. Enhance the | |
| 40 | - [/doc/trunk/www/sync.wiki|sync protocol] so that it is able to support | |
| 41 | - sharing of links to other clones. | |
| 42 | 38 | * Added the --transport-command option to [/help?cmd=sync|fossil sync] |
| 43 | 39 | and similar. |
| 44 | 40 | |
| 45 | 41 | <h2 id='v2_17'>Changes for version 2.17 (2021-10-09)</h2> |
| 46 | 42 | |
| 47 | 43 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -33,14 +33,10 @@ | |
| 33 | * The [/help?cmd=/ext|/ext page] generates the SERVER_SOFTWARE environment |
| 34 | variable for clients. |
| 35 | * Fix the REQUEST_URI [/doc/trunk/www/aboutcgi.wiki#cgivar|CGI variable] such |
| 36 | that it includes the query string. This is how most other systems understand |
| 37 | REQUEST_URI. |
| 38 | * Added the --share-links option to [/help?cmd=sync|fossil sync] and |
| 39 | [/help?cmd=pull|fossil pull]. Enhance the |
| 40 | [/doc/trunk/www/sync.wiki|sync protocol] so that it is able to support |
| 41 | sharing of links to other clones. |
| 42 | * Added the --transport-command option to [/help?cmd=sync|fossil sync] |
| 43 | and similar. |
| 44 | |
| 45 | <h2 id='v2_17'>Changes for version 2.17 (2021-10-09)</h2> |
| 46 | |
| 47 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -33,14 +33,10 @@ | |
| 33 | * The [/help?cmd=/ext|/ext page] generates the SERVER_SOFTWARE environment |
| 34 | variable for clients. |
| 35 | * Fix the REQUEST_URI [/doc/trunk/www/aboutcgi.wiki#cgivar|CGI variable] such |
| 36 | that it includes the query string. This is how most other systems understand |
| 37 | REQUEST_URI. |
| 38 | * Added the --transport-command option to [/help?cmd=sync|fossil sync] |
| 39 | and similar. |
| 40 | |
| 41 | <h2 id='v2_17'>Changes for version 2.17 (2021-10-09)</h2> |
| 42 | |
| 43 |