Fossil SCM

Add the schema-version to the /stat page and to the dbstat command.

drh 2015-01-27 16:34 UTC trunk
Commit 2f62d307430d8aa46ce4ef578de38752a3c64c30
1 file changed +4 -1
+4 -1
--- src/stat.c
+++ src/stat.c
@@ -61,10 +61,11 @@
6161
if( g.perm.Admin ){
6262
style_submenu_element("URLs", "URLs and Checkouts", "urllist");
6363
style_submenu_element("Schema", "Repository Schema", "repo_schema");
6464
style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat");
6565
}
66
+ style_submenu_element("Activity", "Activity Reports", "reports");
6667
@ <table class="label-value">
6768
@ <tr><th>Repository&nbsp;Size:</th><td>
6869
fsize = file_size(g.zRepositoryName);
6970
bigSizeName(sizeof(zBuf), zBuf, fsize);
7071
@ %s(zBuf)
@@ -132,11 +133,12 @@
132133
@ <tr><th>Fossil&nbsp;Version:</th><td>
133134
@ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
134135
@ (%h(RELEASE_VERSION)) [compiled using %h(COMPILER_NAME)]
135136
@ </td></tr>
136137
@ <tr><th>SQLite&nbsp;Version:</th><td>%.19s(sqlite3_sourceid())
137
- @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))</td></tr>
138
+ @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion())</td></tr>
139
+ @ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema)</td></tr>
138140
@ <tr><th>Repository Rebuilt:</th><td>
139141
@ %h(db_get_mtime("rebuilt","%Y-%m-%d %H:%M:%S","Never"))
140142
@ By Fossil %h(db_get("rebuilt","Unknown"))</td></tr>
141143
@ <tr><th>Database&nbsp;Stats:</th><td>
142144
zDb = db_name("repository");
@@ -254,10 +256,11 @@
254256
}
255257
#if 0
256258
/* Server-id is not useful information any more */
257259
fossil_print("%*s%s\n", colWidth, "server-id:", db_get("server-code", 0));
258260
#endif
261
+ fossil_print("%*s%s\n", colWidth, "schema-version:", g.zAuxSchema);
259262
if( !omitVers ){
260263
fossil_print("%*s%s %s [%s] (%s)\n",
261264
colWidth, "fossil-version:",
262265
MANIFEST_DATE, MANIFEST_VERSION, RELEASE_VERSION,
263266
COMPILER_NAME);
264267
--- src/stat.c
+++ src/stat.c
@@ -61,10 +61,11 @@
61 if( g.perm.Admin ){
62 style_submenu_element("URLs", "URLs and Checkouts", "urllist");
63 style_submenu_element("Schema", "Repository Schema", "repo_schema");
64 style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat");
65 }
 
66 @ <table class="label-value">
67 @ <tr><th>Repository&nbsp;Size:</th><td>
68 fsize = file_size(g.zRepositoryName);
69 bigSizeName(sizeof(zBuf), zBuf, fsize);
70 @ %s(zBuf)
@@ -132,11 +133,12 @@
132 @ <tr><th>Fossil&nbsp;Version:</th><td>
133 @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
134 @ (%h(RELEASE_VERSION)) [compiled using %h(COMPILER_NAME)]
135 @ </td></tr>
136 @ <tr><th>SQLite&nbsp;Version:</th><td>%.19s(sqlite3_sourceid())
137 @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))</td></tr>
 
138 @ <tr><th>Repository Rebuilt:</th><td>
139 @ %h(db_get_mtime("rebuilt","%Y-%m-%d %H:%M:%S","Never"))
140 @ By Fossil %h(db_get("rebuilt","Unknown"))</td></tr>
141 @ <tr><th>Database&nbsp;Stats:</th><td>
142 zDb = db_name("repository");
@@ -254,10 +256,11 @@
254 }
255 #if 0
256 /* Server-id is not useful information any more */
257 fossil_print("%*s%s\n", colWidth, "server-id:", db_get("server-code", 0));
258 #endif
 
259 if( !omitVers ){
260 fossil_print("%*s%s %s [%s] (%s)\n",
261 colWidth, "fossil-version:",
262 MANIFEST_DATE, MANIFEST_VERSION, RELEASE_VERSION,
263 COMPILER_NAME);
264
--- src/stat.c
+++ src/stat.c
@@ -61,10 +61,11 @@
61 if( g.perm.Admin ){
62 style_submenu_element("URLs", "URLs and Checkouts", "urllist");
63 style_submenu_element("Schema", "Repository Schema", "repo_schema");
64 style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat");
65 }
66 style_submenu_element("Activity", "Activity Reports", "reports");
67 @ <table class="label-value">
68 @ <tr><th>Repository&nbsp;Size:</th><td>
69 fsize = file_size(g.zRepositoryName);
70 bigSizeName(sizeof(zBuf), zBuf, fsize);
71 @ %s(zBuf)
@@ -132,11 +133,12 @@
133 @ <tr><th>Fossil&nbsp;Version:</th><td>
134 @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
135 @ (%h(RELEASE_VERSION)) [compiled using %h(COMPILER_NAME)]
136 @ </td></tr>
137 @ <tr><th>SQLite&nbsp;Version:</th><td>%.19s(sqlite3_sourceid())
138 @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion())</td></tr>
139 @ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema)</td></tr>
140 @ <tr><th>Repository Rebuilt:</th><td>
141 @ %h(db_get_mtime("rebuilt","%Y-%m-%d %H:%M:%S","Never"))
142 @ By Fossil %h(db_get("rebuilt","Unknown"))</td></tr>
143 @ <tr><th>Database&nbsp;Stats:</th><td>
144 zDb = db_name("repository");
@@ -254,10 +256,11 @@
256 }
257 #if 0
258 /* Server-id is not useful information any more */
259 fossil_print("%*s%s\n", colWidth, "server-id:", db_get("server-code", 0));
260 #endif
261 fossil_print("%*s%s\n", colWidth, "schema-version:", g.zAuxSchema);
262 if( !omitVers ){
263 fossil_print("%*s%s %s [%s] (%s)\n",
264 colWidth, "fossil-version:",
265 MANIFEST_DATE, MANIFEST_VERSION, RELEASE_VERSION,
266 COMPILER_NAME);
267

Keyboard Shortcuts

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