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.

drh 2022-02-23 13:09 trunk
Commit 0a91005e3514633abf39374ecd57fa6f6fc40b2ed429461406f9d9928b8bed07
2 files changed +3 -2 -4
+3 -2
--- src/sync.c
+++ src/sync.c
@@ -232,10 +232,13 @@
232232
*pSyncFlags |= SYNC_NOHTTPCOMPRESS;
233233
}
234234
if( find_option("all",0,0)!=0 ){
235235
*pSyncFlags |= SYNC_ALLURL;
236236
}
237
+
238
+ /* Undocumented option to cause links transitive links to other
239
+ ** repositories to be shared */
237240
if( ((*pSyncFlags) & SYNC_PULL)!=0
238241
&& find_option("share-links",0,0)!=0
239242
){
240243
*pSyncFlags |= SYNC_SHARE_LINKS;
241244
}
@@ -319,11 +322,10 @@
319322
** --once Do not remember URL for subsequent syncs
320323
** --private Pull private branches too
321324
** --project-code CODE Use CODE as the project code
322325
** --proxy PROXY Use the specified HTTP proxy
323326
** -R|--repository REPO Local repository to pull into
324
-** --share-links Share links to mirror repos
325327
** --ssl-identity FILE Local SSL credentials, if requested by remote
326328
** --ssh-command SSH Use SSH as the "ssh" command
327329
** --transport-command CMD Use external command CMD to move messages
328330
** between client and server
329331
** -v|--verbose Additional (debugging) output
@@ -422,11 +424,10 @@
422424
** --no-http-compression Do not compress HTTP traffic
423425
** --once Do not remember URL for subsequent syncs
424426
** --proxy PROXY Use the specified HTTP proxy
425427
** --private Sync private branches too
426428
** -R|--repository REPO Local repository to sync with
427
-** --share-links Share links to mirror repos
428429
** --ssl-identity FILE Local SSL credentials, if requested by remote
429430
** --ssh-command SSH Use SSH as the "ssh" command
430431
** --transport-command CMD Use external command CMD to move message
431432
** between the client and the server
432433
** -u|--unversioned Also sync unversioned content
433434
--- 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
--- www/changes.wiki
+++ www/changes.wiki
@@ -33,14 +33,10 @@
3333
* The [/help?cmd=/ext|/ext page] generates the SERVER_SOFTWARE environment
3434
variable for clients.
3535
* Fix the REQUEST_URI [/doc/trunk/www/aboutcgi.wiki#cgivar|CGI variable] such
3636
that it includes the query string. This is how most other systems understand
3737
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.
4238
* Added the --transport-command option to [/help?cmd=sync|fossil sync]
4339
and similar.
4440
4541
<h2 id='v2_17'>Changes for version 2.17 (2021-10-09)</h2>
4642
4743
--- 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

Keyboard Shortcuts

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