Fossil SCM

Omit phantom artifacts from the count on the "fossil dbstat" command.

drh 2020-11-09 21:17 trunk
Commit 0ded250858cfdaac563efdcd094e15232e391a23596ef4ad8476aab8a7d6b0ab
1 file changed +1 -1
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -335,11 +335,11 @@
335335
fossil_print("%*s%s\n", colWidth, "project-name:", z);
336336
}
337337
fsize = file_size(g.zRepositoryName, ExtFILE);
338338
fossil_print( "%*s%,lld bytes\n", colWidth, "repository-size:", fsize);
339339
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");
341341
m = db_int(0, "SELECT count(*) FROM delta");
342342
fossil_print("%*s%,d (stored as %,d full text and %,d deltas)\n",
343343
colWidth, "artifact-count:",
344344
n, n-m, m);
345345
if( n>0 ){
346346
--- 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

Keyboard Shortcuts

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