Fossil SCM
Issue a verbose warning message if a unversion content sync reverts to pull-only due to lack of permission on the server.
Commit
ef9305a47cd13b404eece1a8839d562bc63ba8cb2753cde00ddc2e5a33b402c9
Parent
6696d4de7d31078…
1 file changed
+5
+5
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2371,10 +2371,15 @@ | ||
| 2371 | 2371 | ** "uv-pull-only" pragma so that the client will know not to waste |
| 2372 | 2372 | ** bandwidth trying to upload unversioned content. If the server |
| 2373 | 2373 | ** does accept new unversioned content, it sends "uv-push-ok". |
| 2374 | 2374 | */ |
| 2375 | 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 | + ); | |
| 2376 | 2381 | if( syncFlags & SYNC_UV_REVERT ) uvDoPush = 1; |
| 2377 | 2382 | }else if( blob_eq(&xfer.aToken[1], "uv-push-ok") ){ |
| 2378 | 2383 | uvDoPush = 1; |
| 2379 | 2384 | } |
| 2380 | 2385 | |
| 2381 | 2386 |
| --- 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 |