Diff
Not logged in

Differences From:

File src/xfer.c part of check-in [0690aa18a4] - Better error messages when "sync" fails due to server problems. Ticket bfb8427cdd5 by drh on 2009-11-11 14:59:09. [view]

To:

File src/xfer.c part of check-in [dccd27c6da] - Added a global command line argument named -quiet. This will suppress some output (currently during sync) for those interfacing fossil with various development tools. It does not make eliminate all output, only the output that is meant for fancy display to the user on a console. You can now use this new flag anywhere by referencing if (!g.fQuiet) {...} by jeremy_c on 2009-12-14 23:18:54. Also file src/xfer.c part of check-in [76bc05d739] - merge with trunk by btheado on 2009-12-30 20:33:59. [view]

@@ -1071,10 +1071,12 @@
         continue;
       }
       xfer.nToken = blob_tokenize(&xfer.line, xfer.aToken, count(xfer.aToken));
       nCardRcvd++;
-      printf("\r%d", nCardRcvd);
-      fflush(stdout);
+      if (!g.fQuiet) {
+        printf("\r%d", nCardRcvd);
+        fflush(stdout);
+      }
 
       /*   file UUID SIZE \n CONTENT
       **   file UUID DELTASRC SIZE \n CONTENT
       **