Fossil SCM
fossil pull shows always 0 bytes received
6883bdd1eff9260…
· opened 15 years, 3 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Minor
- Resolution
- Fixed
- Subsystem
- —
- Created
- Jan. 2, 2011 4:41 p.m.
Pulling from canonical fossil repository shows always "0 bytes received" regardless of bytes transferred.
c:\soft\bin>fossil.exe ver
This is fossil version [79b7902cdd] 2011-01-01 03:06:47 UTC
c:\soft\bin>fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
Bytes Cards Artifacts Deltas
Sent: 177 2 0 0
Received: 1688 36 0 0
Sent: 271 4 0 0
Received: 4299 38 1 1
Sent: 177 2 0 0
Received: 1688 36 0 0
Total network traffic: 926 bytes sent, 0 bytes received
drh added on 2011-01-02 17:41:48 UTC: I am unable to replicate the problem on Linux, Windows (natively built), or Windows (cross-compiled). Are you using the precompiled binary, or is this something that you built yourself?
anonymous added on 2011-01-02 18:48:41 UTC: I was using my fossil build prepared with mingw under msys. But just now I downloaded precompiled version from fossil site. It shows on my system (Czech win XP with service pack 3) similar picture.
c:\soft\bin>c:\soft\bin\fossil-w32-20110101030647.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
Bytes Cards Artifacts Deltas
Sent: 177 2 0 0
Received: 1780 38 0 0
Sent: 224 3 0 0
Received: 2254 39 1 0
Sent: 177 2 0 0
Received: 1780 38 0 0
Total network traffic: 903 bytes sent, 0 bytes received
anonymous added on 2011-01-03 19:55:36 UTC: I wonder what is happening here. If I patch file src/xfer.c, I can see one or another value correct. I can't see correct print of both values. I've checked it on Czech Win 2000 and XP systems:
Microsoft Windows 2000 [Verze 5.00.2195] (C) Copyright 1985-1999 Microsoft Corp.
Microsoft Windows XP [Verze 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
patch:
Index: src/xfer.c
===================================================================
--- src/xfer.c
+++ src/xfer.c
@@ -1567,10 +1567,14 @@
/* Stop the cycle if the server sends a "clone_seqno 0" card */
if( cloneSeqno<=0 ) go = 0;
};
transport_stats(&nSent, &nRcvd, 1);
+ fossil_print("%lld bytes sent, %lld bytes received\n",nSent, nRcvd);
+ fossil_print("%lld bytes received, %lld bytes sent\n",nRcvd, nSent);
+ fossil_print("%lld bytes sent\n",nSent);
+ fossil_print("%lld bytes received\n",nRcvd);
fossil_print("Total network traffic: %lld bytes sent, %lld bytes received\n",
nSent, nRcvd);
transport_close();
transport_global_shutdown();
db_multi_exec("DROP TABLE onremote");
output:
fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
Bytes Cards Artifacts Deltas
Sent: 177 2 0 0
Received: 2286 49 0 0
291 bytes sent, 0 bytes received
377 bytes received, 0 bytes sent
291 bytes sent
377 bytes received
Total network traffic: 291 bytes sent, 0 bytes received
anonymous added on 2011-01-03 22:39:11 UTC: I can confirm check-in [d394120c42] fixes issue I've seen with fossil pull command. Thanks