Fossil SCM

Issue a verbose warning message if a unversion content sync reverts to pull-only due to lack of permission on the server.

drh 2020-02-07 16:53 trunk
Commit ef9305a47cd13b404eece1a8839d562bc63ba8cb2753cde00ddc2e5a33b402c9
1 file changed +5
+5
--- src/xfer.c
+++ src/xfer.c
@@ -2371,10 +2371,15 @@
23712371
** "uv-pull-only" pragma so that the client will know not to waste
23722372
** bandwidth trying to upload unversioned content. If the server
23732373
** does accept new unversioned content, it sends "uv-push-ok".
23742374
*/
23752375
if( blob_eq(&xfer.aToken[1], "uv-pull-only") ){
2376
+ fossil_print(
2377
+ "Warning: uv-pull-only \n"
2378
+ " Unable to push unversioned content because you lack\n"
2379
+ " sufficient permission on the server\n"
2380
+ );
23762381
if( syncFlags & SYNC_UV_REVERT ) uvDoPush = 1;
23772382
}else if( blob_eq(&xfer.aToken[1], "uv-push-ok") ){
23782383
uvDoPush = 1;
23792384
}
23802385
23812386
--- src/xfer.c
+++ src/xfer.c
@@ -2371,10 +2371,15 @@
2371 ** "uv-pull-only" pragma so that the client will know not to waste
2372 ** bandwidth trying to upload unversioned content. If the server
2373 ** does accept new unversioned content, it sends "uv-push-ok".
2374 */
2375 if( blob_eq(&xfer.aToken[1], "uv-pull-only") ){
 
 
 
 
 
2376 if( syncFlags & SYNC_UV_REVERT ) uvDoPush = 1;
2377 }else if( blob_eq(&xfer.aToken[1], "uv-push-ok") ){
2378 uvDoPush = 1;
2379 }
2380
2381
--- src/xfer.c
+++ src/xfer.c
@@ -2371,10 +2371,15 @@
2371 ** "uv-pull-only" pragma so that the client will know not to waste
2372 ** bandwidth trying to upload unversioned content. If the server
2373 ** does accept new unversioned content, it sends "uv-push-ok".
2374 */
2375 if( blob_eq(&xfer.aToken[1], "uv-pull-only") ){
2376 fossil_print(
2377 "Warning: uv-pull-only \n"
2378 " Unable to push unversioned content because you lack\n"
2379 " sufficient permission on the server\n"
2380 );
2381 if( syncFlags & SYNC_UV_REVERT ) uvDoPush = 1;
2382 }else if( blob_eq(&xfer.aToken[1], "uv-push-ok") ){
2383 uvDoPush = 1;
2384 }
2385
2386

Keyboard Shortcuts

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