Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Minor repo_list_page() API doc addition and zeroed a closed db handle, "just in case". |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d87bf251e5fd71fe525b02d3d0944c89 |
User & Date: | stephan 2020-02-10 08:32:38.939 |
Context
2020-02-11
| ||
18:15 | Do not try to maps graph rails that are negative. Fix for ticket [acf1302afa53e6a1] ... (check-in: 7a585153 user: drh tags: trunk) | |
2020-02-10
| ||
08:32 | Minor repo_list_page() API doc addition and zeroed a closed db handle, "just in case". ... (check-in: d87bf251 user: stephan tags: trunk) | |
2020-02-08
| ||
17:53 | Various documentation typo fixes. Remove the link to the (now obsolete) Fossil mailing list archive from the front page. ... (check-in: b45da258 user: drh tags: trunk) | |
Changes
Changes to src/repolist.c.
︙ | ︙ | |||
94 95 96 97 98 99 100 | ** processing is disallowed for chroot jails because g.zRepositoryName ** is always "/" inside a chroot jail and so it cannot be used as a flag ** to signal the special processing in that case. The special case ** processing is intended for the "fossil all ui" command which never ** runs in a chroot jail anyhow. ** ** Or, if no repositories can be located beneath g.zRepositoryName, | | | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | ** processing is disallowed for chroot jails because g.zRepositoryName ** is always "/" inside a chroot jail and so it cannot be used as a flag ** to signal the special processing in that case. The special case ** processing is intended for the "fossil all ui" command which never ** runs in a chroot jail anyhow. ** ** Or, if no repositories can be located beneath g.zRepositoryName, ** close g.db and return 0. */ int repo_list_page(void){ Blob base; /* document root for all repositories */ int n = 0; /* Number of repositories found */ int allRepo; /* True if running "fossil ui all". ** False if a directory scan of base for repos */ Blob html; /* Html for the body of the repository list */ |
︙ | ︙ | |||
138 139 140 141 142 143 144 145 146 147 148 149 150 151 | vfile_scan(&base, blob_size(&base), 0, 0, 0, ExtFILE); db_multi_exec("DELETE FROM sfile WHERE pathname NOT GLOB '*[^/].fossil'"); allRepo = 0; } n = db_int(0, "SELECT count(*) FROM sfile"); if( n==0 ){ sqlite3_close(g.db); return 0; }else{ Stmt q; double rNow; blob_append_sql(&html, "<table border='0' class='sortable' data-init-sort='1'" " data-column-types='txtxk'><thead>\n" | > | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | vfile_scan(&base, blob_size(&base), 0, 0, 0, ExtFILE); db_multi_exec("DELETE FROM sfile WHERE pathname NOT GLOB '*[^/].fossil'"); allRepo = 0; } n = db_int(0, "SELECT count(*) FROM sfile"); if( n==0 ){ sqlite3_close(g.db); g.db = 0; return 0; }else{ Stmt q; double rNow; blob_append_sql(&html, "<table border='0' class='sortable' data-init-sort='1'" " data-column-types='txtxk'><thead>\n" |
︙ | ︙ |