Fossil SCM

No need for the /version page to distinguish between verbose=2 and verbose=1, just presence (or not) of "verbose" is enough.

jan.nijtmans 2017-04-26 15:27 trunk
Commit 0ec71205708f73da0ae66379a373e50664042b86661e6b3aa191816a81ee4455
2 files changed +1 -1 +2 -2
+1 -1
--- src/main.c
+++ src/main.c
@@ -1061,11 +1061,11 @@
10611061
Blob versionInfo;
10621062
int verboseFlag;
10631063
10641064
login_check_credentials();
10651065
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
1066
- verboseFlag = atoi(PD("verbose","0"));
1066
+ verboseFlag = PD("verbose", 0) != 0;
10671067
style_header("Version Information");
10681068
style_submenu_element("Stat", "stat");
10691069
get_version_blob(&versionInfo, verboseFlag);
10701070
@ <pre>
10711071
@ %h(blob_str(&versionInfo))
10721072
--- src/main.c
+++ src/main.c
@@ -1061,11 +1061,11 @@
1061 Blob versionInfo;
1062 int verboseFlag;
1063
1064 login_check_credentials();
1065 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
1066 verboseFlag = atoi(PD("verbose","0"));
1067 style_header("Version Information");
1068 style_submenu_element("Stat", "stat");
1069 get_version_blob(&versionInfo, verboseFlag);
1070 @ <pre>
1071 @ %h(blob_str(&versionInfo))
1072
--- src/main.c
+++ src/main.c
@@ -1061,11 +1061,11 @@
1061 Blob versionInfo;
1062 int verboseFlag;
1063
1064 login_check_credentials();
1065 if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
1066 verboseFlag = PD("verbose", 0) != 0;
1067 style_header("Version Information");
1068 style_submenu_element("Stat", "stat");
1069 get_version_blob(&versionInfo, verboseFlag);
1070 @ <pre>
1071 @ %h(blob_str(&versionInfo))
1072
+2 -2
--- src/stat.c
+++ src/stat.c
@@ -178,15 +178,15 @@
178178
@ <td>%h(p) %h(db_get("parent-project-name",""))</td></tr>
179179
}
180180
/* @ <tr><th>Server&nbsp;ID:</th><td>%h(db_get("server-code",""))</td></tr> */
181181
@ <tr><th>Fossil&nbsp;Version:</th><td>
182182
@ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
183
- @ (%h(RELEASE_VERSION)) <a href='version?verbose=1'>(details)</a>
183
+ @ (%h(RELEASE_VERSION)) <a href='version?verbose'>(details)</a>
184184
@ </td></tr>
185185
@ <tr><th>SQLite&nbsp;Version:</th><td>%.19s(sqlite3_sourceid())
186186
@ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))
187
- @ <a href='version?verbose=2'>(details)</a></td></tr>
187
+ @ <a href='version?verbose'>(details)</a></td></tr>
188188
if( g.eHashPolicy!=HPOLICY_AUTO ){
189189
@ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema),
190190
@ %s(hpolicy_name())</td></tr>
191191
}else{
192192
@ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema)</td></tr>
193193
--- src/stat.c
+++ src/stat.c
@@ -178,15 +178,15 @@
178 @ <td>%h(p) %h(db_get("parent-project-name",""))</td></tr>
179 }
180 /* @ <tr><th>Server&nbsp;ID:</th><td>%h(db_get("server-code",""))</td></tr> */
181 @ <tr><th>Fossil&nbsp;Version:</th><td>
182 @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
183 @ (%h(RELEASE_VERSION)) <a href='version?verbose=1'>(details)</a>
184 @ </td></tr>
185 @ <tr><th>SQLite&nbsp;Version:</th><td>%.19s(sqlite3_sourceid())
186 @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))
187 @ <a href='version?verbose=2'>(details)</a></td></tr>
188 if( g.eHashPolicy!=HPOLICY_AUTO ){
189 @ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema),
190 @ %s(hpolicy_name())</td></tr>
191 }else{
192 @ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema)</td></tr>
193
--- src/stat.c
+++ src/stat.c
@@ -178,15 +178,15 @@
178 @ <td>%h(p) %h(db_get("parent-project-name",""))</td></tr>
179 }
180 /* @ <tr><th>Server&nbsp;ID:</th><td>%h(db_get("server-code",""))</td></tr> */
181 @ <tr><th>Fossil&nbsp;Version:</th><td>
182 @ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
183 @ (%h(RELEASE_VERSION)) <a href='version?verbose'>(details)</a>
184 @ </td></tr>
185 @ <tr><th>SQLite&nbsp;Version:</th><td>%.19s(sqlite3_sourceid())
186 @ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))
187 @ <a href='version?verbose'>(details)</a></td></tr>
188 if( g.eHashPolicy!=HPOLICY_AUTO ){
189 @ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema),
190 @ %s(hpolicy_name())</td></tr>
191 }else{
192 @ <tr><th>Schema&nbsp;Version:</th><td>%h(g.zAuxSchema)</td></tr>
193

Keyboard Shortcuts

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