Fossil SCM
Add the schema-version to the /stat page and to the dbstat command.
Commit
2f62d307430d8aa46ce4ef578de38752a3c64c30
Parent
9bc7041ae74dfc0…
1 file changed
+4
-1
+4
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -61,10 +61,11 @@ | ||
| 61 | 61 | if( g.perm.Admin ){ |
| 62 | 62 | style_submenu_element("URLs", "URLs and Checkouts", "urllist"); |
| 63 | 63 | style_submenu_element("Schema", "Repository Schema", "repo_schema"); |
| 64 | 64 | style_submenu_element("Web-Cache", "Web-Cache Stats", "cachestat"); |
| 65 | 65 | } |
| 66 | + style_submenu_element("Activity", "Activity Reports", "reports"); | |
| 66 | 67 | @ <table class="label-value"> |
| 67 | 68 | @ <tr><th>Repository Size:</th><td> |
| 68 | 69 | fsize = file_size(g.zRepositoryName); |
| 69 | 70 | bigSizeName(sizeof(zBuf), zBuf, fsize); |
| 70 | 71 | @ %s(zBuf) |
| @@ -132,11 +133,12 @@ | ||
| 132 | 133 | @ <tr><th>Fossil Version:</th><td> |
| 133 | 134 | @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION) |
| 134 | 135 | @ (%h(RELEASE_VERSION)) [compiled using %h(COMPILER_NAME)] |
| 135 | 136 | @ </td></tr> |
| 136 | 137 | @ <tr><th>SQLite 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 Version:</th><td>%h(g.zAuxSchema)</td></tr> | |
| 138 | 140 | @ <tr><th>Repository Rebuilt:</th><td> |
| 139 | 141 | @ %h(db_get_mtime("rebuilt","%Y-%m-%d %H:%M:%S","Never")) |
| 140 | 142 | @ By Fossil %h(db_get("rebuilt","Unknown"))</td></tr> |
| 141 | 143 | @ <tr><th>Database Stats:</th><td> |
| 142 | 144 | zDb = db_name("repository"); |
| @@ -254,10 +256,11 @@ | ||
| 254 | 256 | } |
| 255 | 257 | #if 0 |
| 256 | 258 | /* Server-id is not useful information any more */ |
| 257 | 259 | fossil_print("%*s%s\n", colWidth, "server-id:", db_get("server-code", 0)); |
| 258 | 260 | #endif |
| 261 | + fossil_print("%*s%s\n", colWidth, "schema-version:", g.zAuxSchema); | |
| 259 | 262 | if( !omitVers ){ |
| 260 | 263 | fossil_print("%*s%s %s [%s] (%s)\n", |
| 261 | 264 | colWidth, "fossil-version:", |
| 262 | 265 | MANIFEST_DATE, MANIFEST_VERSION, RELEASE_VERSION, |
| 263 | 266 | COMPILER_NAME); |
| 264 | 267 |
| --- 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 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 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 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 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 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 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 Version:</th><td>%.19s(sqlite3_sourceid()) |
| 138 | @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion())</td></tr> |
| 139 | @ <tr><th>Schema 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 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 |