Fossil SCM

Cosmetic fix for "/file?name=xxxx" where ci defaults to "tip". Title used to be "xxxx at []"; now it is "xxxx at tip" which matches the behaviour of "/file?name=xxxx&ci=tip".

graham 2020-05-28 11:42 trunk
Commit 551676bc2882f788f2bc52135b53f76b2ce8598e9c1ced7b4566c642ff027d6b
1 file changed +1
+1
--- src/info.c
+++ src/info.c
@@ -2239,10 +2239,11 @@
22392239
22402240
asText = P("txt")!=0;
22412241
if( isFile ){
22422242
if( zCI==0 || fossil_strcmp(zCI,"tip")==0 ){
22432243
zCI = "tip";
2244
+ isSymbolicCI = 1; /* Mark default-to-"tip" as symbolic */
22442245
@ <h2>File %z(href("%R/finfo?name=%T&m=tip",zName))%h(zName)</a>
22452246
@ from the %z(href("%R/info/tip"))latest check-in</a></h2>
22462247
}else{
22472248
const char *zPath;
22482249
Blob path;
22492250
--- src/info.c
+++ src/info.c
@@ -2239,10 +2239,11 @@
2239
2240 asText = P("txt")!=0;
2241 if( isFile ){
2242 if( zCI==0 || fossil_strcmp(zCI,"tip")==0 ){
2243 zCI = "tip";
 
2244 @ <h2>File %z(href("%R/finfo?name=%T&m=tip",zName))%h(zName)</a>
2245 @ from the %z(href("%R/info/tip"))latest check-in</a></h2>
2246 }else{
2247 const char *zPath;
2248 Blob path;
2249
--- src/info.c
+++ src/info.c
@@ -2239,10 +2239,11 @@
2239
2240 asText = P("txt")!=0;
2241 if( isFile ){
2242 if( zCI==0 || fossil_strcmp(zCI,"tip")==0 ){
2243 zCI = "tip";
2244 isSymbolicCI = 1; /* Mark default-to-"tip" as symbolic */
2245 @ <h2>File %z(href("%R/finfo?name=%T&m=tip",zName))%h(zName)</a>
2246 @ from the %z(href("%R/info/tip"))latest check-in</a></h2>
2247 }else{
2248 const char *zPath;
2249 Blob path;
2250

Keyboard Shortcuts

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