Fossil SCM
Display FQDN on sync only when the verbose flag is on.
Commit
cc34f3cf49a70e563bf479c87d1cd00be79c06e66e47ad59ee9dc59ab0e0c4f8
Parent
a0b0d8f99874374…
1 file changed
+13
-6
+13
-6
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2857,16 +2857,23 @@ | ||
| 2857 | 2857 | g.clockSkewSeen = 1; |
| 2858 | 2858 | } |
| 2859 | 2859 | |
| 2860 | 2860 | fossil_force_newline(); |
| 2861 | 2861 | if( g.zHttpCmd==0 ){ |
| 2862 | - fossil_print( | |
| 2863 | - "%s done, wire bytes sent: %lld received: %lld remote: %s%s\n", | |
| 2864 | - zOpType, nSent, nRcvd, | |
| 2865 | - (g.url.name && g.url.name[0]!='\0') ? g.url.name : "", | |
| 2866 | - (g.zIpAddr && g.zIpAddr[0]!='\0' && fossil_strcmp(g.zIpAddr,g.url.name)) ? | |
| 2867 | - mprintf(" (%s)", g.zIpAddr) : ""); | |
| 2862 | + if( syncFlags & SYNC_VERBOSE ){ | |
| 2863 | + fossil_print( | |
| 2864 | + "%s done, wire bytes sent: %lld received: %lld remote: %s%s\n", | |
| 2865 | + zOpType, nSent, nRcvd, | |
| 2866 | + (g.url.name && g.url.name[0]!='\0') ? g.url.name : "", | |
| 2867 | + (g.zIpAddr && g.zIpAddr[0]!='\0' | |
| 2868 | + && fossil_strcmp(g.zIpAddr, g.url.name)) | |
| 2869 | + ? mprintf(" (%s)", g.zIpAddr) : ""); | |
| 2870 | + }else{ | |
| 2871 | + fossil_print( | |
| 2872 | + "%s done, wire bytes sent: %lld received: %lld remote: %s\n", | |
| 2873 | + zOpType, nSent, nRcvd, g.zIpAddr); | |
| 2874 | + } | |
| 2868 | 2875 | } |
| 2869 | 2876 | if( syncFlags & SYNC_VERBOSE ){ |
| 2870 | 2877 | fossil_print( |
| 2871 | 2878 | "Uncompressed payload sent: %lld received: %lld\n", nUncSent, nUncRcvd); |
| 2872 | 2879 | } |
| 2873 | 2880 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2857,16 +2857,23 @@ | |
| 2857 | g.clockSkewSeen = 1; |
| 2858 | } |
| 2859 | |
| 2860 | fossil_force_newline(); |
| 2861 | if( g.zHttpCmd==0 ){ |
| 2862 | fossil_print( |
| 2863 | "%s done, wire bytes sent: %lld received: %lld remote: %s%s\n", |
| 2864 | zOpType, nSent, nRcvd, |
| 2865 | (g.url.name && g.url.name[0]!='\0') ? g.url.name : "", |
| 2866 | (g.zIpAddr && g.zIpAddr[0]!='\0' && fossil_strcmp(g.zIpAddr,g.url.name)) ? |
| 2867 | mprintf(" (%s)", g.zIpAddr) : ""); |
| 2868 | } |
| 2869 | if( syncFlags & SYNC_VERBOSE ){ |
| 2870 | fossil_print( |
| 2871 | "Uncompressed payload sent: %lld received: %lld\n", nUncSent, nUncRcvd); |
| 2872 | } |
| 2873 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2857,16 +2857,23 @@ | |
| 2857 | g.clockSkewSeen = 1; |
| 2858 | } |
| 2859 | |
| 2860 | fossil_force_newline(); |
| 2861 | if( g.zHttpCmd==0 ){ |
| 2862 | if( syncFlags & SYNC_VERBOSE ){ |
| 2863 | fossil_print( |
| 2864 | "%s done, wire bytes sent: %lld received: %lld remote: %s%s\n", |
| 2865 | zOpType, nSent, nRcvd, |
| 2866 | (g.url.name && g.url.name[0]!='\0') ? g.url.name : "", |
| 2867 | (g.zIpAddr && g.zIpAddr[0]!='\0' |
| 2868 | && fossil_strcmp(g.zIpAddr, g.url.name)) |
| 2869 | ? mprintf(" (%s)", g.zIpAddr) : ""); |
| 2870 | }else{ |
| 2871 | fossil_print( |
| 2872 | "%s done, wire bytes sent: %lld received: %lld remote: %s\n", |
| 2873 | zOpType, nSent, nRcvd, g.zIpAddr); |
| 2874 | } |
| 2875 | } |
| 2876 | if( syncFlags & SYNC_VERBOSE ){ |
| 2877 | fossil_print( |
| 2878 | "Uncompressed payload sent: %lld received: %lld\n", nUncSent, nUncRcvd); |
| 2879 | } |
| 2880 |