Fossil SCM
Omit phantom artifacts from the count on the "fossil dbstat" command.
Commit
0ded250858cfdaac563efdcd094e15232e391a23596ef4ad8476aab8a7d6b0ab
Parent
eb95bc1052af4b4…
1 file changed
+1
-1
+1
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -335,11 +335,11 @@ | ||
| 335 | 335 | fossil_print("%*s%s\n", colWidth, "project-name:", z); |
| 336 | 336 | } |
| 337 | 337 | fsize = file_size(g.zRepositoryName, ExtFILE); |
| 338 | 338 | fossil_print( "%*s%,lld bytes\n", colWidth, "repository-size:", fsize); |
| 339 | 339 | if( !brief ){ |
| 340 | - n = db_int(0, "SELECT count(*) FROM blob"); | |
| 340 | + n = db_int(0, "SELECT count(*) FROM blob WHERE content IS NOT NULL"); | |
| 341 | 341 | m = db_int(0, "SELECT count(*) FROM delta"); |
| 342 | 342 | fossil_print("%*s%,d (stored as %,d full text and %,d deltas)\n", |
| 343 | 343 | colWidth, "artifact-count:", |
| 344 | 344 | n, n-m, m); |
| 345 | 345 | if( n>0 ){ |
| 346 | 346 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -335,11 +335,11 @@ | |
| 335 | fossil_print("%*s%s\n", colWidth, "project-name:", z); |
| 336 | } |
| 337 | fsize = file_size(g.zRepositoryName, ExtFILE); |
| 338 | fossil_print( "%*s%,lld bytes\n", colWidth, "repository-size:", fsize); |
| 339 | if( !brief ){ |
| 340 | n = db_int(0, "SELECT count(*) FROM blob"); |
| 341 | m = db_int(0, "SELECT count(*) FROM delta"); |
| 342 | fossil_print("%*s%,d (stored as %,d full text and %,d deltas)\n", |
| 343 | colWidth, "artifact-count:", |
| 344 | n, n-m, m); |
| 345 | if( n>0 ){ |
| 346 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -335,11 +335,11 @@ | |
| 335 | fossil_print("%*s%s\n", colWidth, "project-name:", z); |
| 336 | } |
| 337 | fsize = file_size(g.zRepositoryName, ExtFILE); |
| 338 | fossil_print( "%*s%,lld bytes\n", colWidth, "repository-size:", fsize); |
| 339 | if( !brief ){ |
| 340 | n = db_int(0, "SELECT count(*) FROM blob WHERE content IS NOT NULL"); |
| 341 | m = db_int(0, "SELECT count(*) FROM delta"); |
| 342 | fossil_print("%*s%,d (stored as %,d full text and %,d deltas)\n", |
| 343 | colWidth, "artifact-count:", |
| 344 | n, n-m, m); |
| 345 | if( n>0 ){ |
| 346 |