Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Found two more places that fQuiet should have been checked. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
137d653a065d0d6adb6d96e6141a8a17 |
| User & Date: | jeremy_c 2009-12-14 23:26:03.000 |
| Original User & Date: | Jeremy 2009-12-14 23:26:03.000 |
Context
|
2009-12-16
| ||
| 02:02 | Improvements to some comments in vfile.c. ... (check-in: 2f15cd805e user: drh tags: trunk) | |
|
2009-12-14
| ||
| 23:26 | Found two more places that fQuiet should have been checked. ... (check-in: 137d653a06 user: jeremy_c tags: trunk) | |
| 23:18 | 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) {...} ... (check-in: dccd27c6da user: jeremy_c tags: trunk) | |
Changes
Changes to src/rebuild.c.
| ︙ | ︙ | |||
89 90 91 92 93 94 95 |
** Called after each artifact is processed
*/
static void rebuild_step_done(rid){
/* assert( bag_find(&bagDone, rid)==0 ); */
bag_insert(&bagDone, rid);
if( ttyOutput ){
processCnt++;
| > | | > | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
** Called after each artifact is processed
*/
static void rebuild_step_done(rid){
/* assert( bag_find(&bagDone, rid)==0 ); */
bag_insert(&bagDone, rid);
if( ttyOutput ){
processCnt++;
if (!g.fQuiet) {
printf("%d (%d%%)...\r", processCnt, (processCnt*100/totalSize));
fflush(stdout);
}
}
}
/*
** Rebuild cross-referencing information for the artifact
** rid with content pBase and all of its descendants. This
** routine clears the content buffer before returning.
|
| ︙ | ︙ | |||
204 205 206 207 208 209 210 | Stmt s; int errCnt = 0; char *zTable; bag_init(&bagDone); ttyOutput = doOut; processCnt = 0; | > | > > | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
Stmt s;
int errCnt = 0;
char *zTable;
bag_init(&bagDone);
ttyOutput = doOut;
processCnt = 0;
if (!g.fQuiet) {
printf("0 (0%%)...\r");
fflush(stdout);
}
db_multi_exec(zSchemaUpdates);
for(;;){
zTable = db_text(0,
"SELECT name FROM sqlite_master"
" WHERE type='table'"
" AND name NOT IN ('blob','delta','rcvfrom','user',"
"'config','shun','private','reportfmt',"
|
| ︙ | ︙ | |||
271 272 273 274 275 276 277 |
db_multi_exec("INSERT OR IGNORE INTO phantom VALUES(%d)", rid);
rebuild_step_done(rid);
}
}
db_finalize(&s);
manifest_crosslink_end();
rebuild_tag_trunk();
| | | 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
db_multi_exec("INSERT OR IGNORE INTO phantom VALUES(%d)", rid);
rebuild_step_done(rid);
}
}
db_finalize(&s);
manifest_crosslink_end();
rebuild_tag_trunk();
if(!g.fQuiet && ttyOutput ){
printf("\n");
}
return errCnt;
}
/*
** COMMAND: rebuild
|
| ︙ | ︙ |