Fossil SCM
For sync operations, also display the FQDN of the remote, if available.
Commit
99b09b9476c7e5a33a2647724ffa151cca79324a2019d8175d80a7b6f724fd0f
Parent
35df3e6ad48bd64…
1 file changed
+5
-2
+5
-2
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2858,12 +2858,15 @@ | ||
| 2858 | 2858 | } |
| 2859 | 2859 | |
| 2860 | 2860 | fossil_force_newline(); |
| 2861 | 2861 | if( g.zHttpCmd==0 ){ |
| 2862 | 2862 | fossil_print( |
| 2863 | - "%s done, wire bytes sent: %lld received: %lld remote: %s\n", | |
| 2864 | - zOpType, nSent, nRcvd, g.zIpAddr); | |
| 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) : ""); | |
| 2865 | 2868 | } |
| 2866 | 2869 | if( syncFlags & SYNC_VERBOSE ){ |
| 2867 | 2870 | fossil_print( |
| 2868 | 2871 | "Uncompressed payload sent: %lld received: %lld\n", nUncSent, nUncRcvd); |
| 2869 | 2872 | } |
| 2870 | 2873 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2858,12 +2858,15 @@ | |
| 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\n", |
| 2864 | zOpType, nSent, nRcvd, g.zIpAddr); |
| 2865 | } |
| 2866 | if( syncFlags & SYNC_VERBOSE ){ |
| 2867 | fossil_print( |
| 2868 | "Uncompressed payload sent: %lld received: %lld\n", nUncSent, nUncRcvd); |
| 2869 | } |
| 2870 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2858,12 +2858,15 @@ | |
| 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 |