Fossil SCM

Fix three remaining instances of printing rebuild progress in CGI mode. Ticket [19be0265ff].

dmitry 2011-09-11 13:57 dmitry-fixes
Commit 2cd21f8dc2ec202e3ef4d771fd3d4ab426b98e7b
1 file changed +3 -3
+3 -3
--- src/rebuild.c
+++ src/rebuild.c
@@ -338,11 +338,11 @@
338338
int incrSize;
339339
340340
bag_init(&bagDone);
341341
ttyOutput = doOut;
342342
processCnt = 0;
343
- if (!g.fQuiet) {
343
+ if (ttyOutput && !g.fQuiet) {
344344
percent_complete(0);
345345
}
346346
rebuild_update_schema();
347347
for(;;){
348348
zTable = db_text(0,
@@ -410,16 +410,16 @@
410410
}
411411
}
412412
db_finalize(&s);
413413
manifest_crosslink_end();
414414
rebuild_tag_trunk();
415
- if( !g.fQuiet && totalSize>0 ){
415
+ if( ttyOutput && !g.fQuiet && totalSize>0 ){
416416
processCnt += incrSize;
417417
percent_complete((processCnt*1000)/totalSize);
418418
}
419419
if( doClustering ) create_cluster();
420
- if( !g.fQuiet && totalSize>0 ){
420
+ if( ttyOutput && !g.fQuiet && totalSize>0 ){
421421
processCnt += incrSize;
422422
percent_complete((processCnt*1000)/totalSize);
423423
}
424424
if(!g.fQuiet && ttyOutput ){
425425
fossil_print("\n");
426426
--- src/rebuild.c
+++ src/rebuild.c
@@ -338,11 +338,11 @@
338 int incrSize;
339
340 bag_init(&bagDone);
341 ttyOutput = doOut;
342 processCnt = 0;
343 if (!g.fQuiet) {
344 percent_complete(0);
345 }
346 rebuild_update_schema();
347 for(;;){
348 zTable = db_text(0,
@@ -410,16 +410,16 @@
410 }
411 }
412 db_finalize(&s);
413 manifest_crosslink_end();
414 rebuild_tag_trunk();
415 if( !g.fQuiet && totalSize>0 ){
416 processCnt += incrSize;
417 percent_complete((processCnt*1000)/totalSize);
418 }
419 if( doClustering ) create_cluster();
420 if( !g.fQuiet && totalSize>0 ){
421 processCnt += incrSize;
422 percent_complete((processCnt*1000)/totalSize);
423 }
424 if(!g.fQuiet && ttyOutput ){
425 fossil_print("\n");
426
--- src/rebuild.c
+++ src/rebuild.c
@@ -338,11 +338,11 @@
338 int incrSize;
339
340 bag_init(&bagDone);
341 ttyOutput = doOut;
342 processCnt = 0;
343 if (ttyOutput && !g.fQuiet) {
344 percent_complete(0);
345 }
346 rebuild_update_schema();
347 for(;;){
348 zTable = db_text(0,
@@ -410,16 +410,16 @@
410 }
411 }
412 db_finalize(&s);
413 manifest_crosslink_end();
414 rebuild_tag_trunk();
415 if( ttyOutput && !g.fQuiet && totalSize>0 ){
416 processCnt += incrSize;
417 percent_complete((processCnt*1000)/totalSize);
418 }
419 if( doClustering ) create_cluster();
420 if( ttyOutput && !g.fQuiet && totalSize>0 ){
421 processCnt += incrSize;
422 percent_complete((processCnt*1000)/totalSize);
423 }
424 if(!g.fQuiet && ttyOutput ){
425 fossil_print("\n");
426

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button