Fossil SCM

In the "fossil all ui" command, shows the "(hidden)" mark after repos that contain "/." in their pathnames.

drh 2017-10-17 23:03 trunk
Commit b82bdff78918e6fd7e64996bc542f6270c9b384e8227acb78e5cce24b5874351
1 file changed +3
+3
--- src/main.c
+++ src/main.c
@@ -1291,10 +1291,13 @@
12911291
if( sqlite3_strglob("*.fossil", zName)!=0 ){
12921292
/* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands
12931293
** do not work for repositories whose names do not end in ".fossil".
12941294
** So do not hyperlink those cases. */
12951295
@ <li>%h(zName)</li>
1296
+ } else if( sqlite3_strglob("*/.*", zName)==0 ){
1297
+ /* Do not show hidden repos */
1298
+ @ <li>%h(zName) (hidden)</li>
12961299
} else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){
12971300
@ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li>
12981301
}else{
12991302
@ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li>
13001303
}
13011304
--- src/main.c
+++ src/main.c
@@ -1291,10 +1291,13 @@
1291 if( sqlite3_strglob("*.fossil", zName)!=0 ){
1292 /* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands
1293 ** do not work for repositories whose names do not end in ".fossil".
1294 ** So do not hyperlink those cases. */
1295 @ <li>%h(zName)</li>
 
 
 
1296 } else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){
1297 @ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li>
1298 }else{
1299 @ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li>
1300 }
1301
--- src/main.c
+++ src/main.c
@@ -1291,10 +1291,13 @@
1291 if( sqlite3_strglob("*.fossil", zName)!=0 ){
1292 /* The "fossil server DIRECTORY" and "fossil ui DIRECTORY" commands
1293 ** do not work for repositories whose names do not end in ".fossil".
1294 ** So do not hyperlink those cases. */
1295 @ <li>%h(zName)</li>
1296 } else if( sqlite3_strglob("*/.*", zName)==0 ){
1297 /* Do not show hidden repos */
1298 @ <li>%h(zName) (hidden)</li>
1299 } else if( allRepo && sqlite3_strglob("[a-zA-Z]:/?*", zName)!=0 ){
1300 @ <li><a href="%R/%T(zUrl)/home" target="_blank">/%h(zName)</a></li>
1301 }else{
1302 @ <li><a href="%R/%T(zUrl)/home" target="_blank">%h(zName)</a></li>
1303 }
1304

Keyboard Shortcuts

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