Fossil SCM
Inhibit timeline links to wiki pages that have been deleted.
Commit
425df28c0258cc07ab922b13019af0291783843e
Parent
a2f03b8c7fa9bad…
3 files changed
+3
-1
+1
+1
+3
-1
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -1151,11 +1151,13 @@ | ||
| 1151 | 1151 | return zTarget+5; |
| 1152 | 1152 | } |
| 1153 | 1153 | if( strcmp(zTarget, "Sandbox")==0 ) return zTarget; |
| 1154 | 1154 | if( wiki_name_is_wellformed((const unsigned char *)zTarget) |
| 1155 | 1155 | && ((p->state & WIKI_NOBADLINKS)==0 || |
| 1156 | - db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'", zTarget)) | |
| 1156 | + db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'" | |
| 1157 | + " AND (SELECT value FROM tagxref WHERE tagid=tag.tagid" | |
| 1158 | + " ORDER BY mtime DESC LIMIT 1) > 0", zTarget)) | |
| 1157 | 1159 | ){ |
| 1158 | 1160 | return zTarget; |
| 1159 | 1161 | } |
| 1160 | 1162 | return 0; |
| 1161 | 1163 | } |
| 1162 | 1164 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1151,11 +1151,13 @@ | |
| 1151 | return zTarget+5; |
| 1152 | } |
| 1153 | if( strcmp(zTarget, "Sandbox")==0 ) return zTarget; |
| 1154 | if( wiki_name_is_wellformed((const unsigned char *)zTarget) |
| 1155 | && ((p->state & WIKI_NOBADLINKS)==0 || |
| 1156 | db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'", zTarget)) |
| 1157 | ){ |
| 1158 | return zTarget; |
| 1159 | } |
| 1160 | return 0; |
| 1161 | } |
| 1162 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1151,11 +1151,13 @@ | |
| 1151 | return zTarget+5; |
| 1152 | } |
| 1153 | if( strcmp(zTarget, "Sandbox")==0 ) return zTarget; |
| 1154 | if( wiki_name_is_wellformed((const unsigned char *)zTarget) |
| 1155 | && ((p->state & WIKI_NOBADLINKS)==0 || |
| 1156 | db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'wiki-%q'" |
| 1157 | " AND (SELECT value FROM tagxref WHERE tagid=tag.tagid" |
| 1158 | " ORDER BY mtime DESC LIMIT 1) > 0", zTarget)) |
| 1159 | ){ |
| 1160 | return zTarget; |
| 1161 | } |
| 1162 | return 0; |
| 1163 | } |
| 1164 |
+1
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -42,10 +42,11 @@ | ||
| 42 | 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | 44 | changes on otherwise unmodified files. |
| 45 | 45 | * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't |
| 46 | 46 | already exist. |
| 47 | + * Inhibit timeline links to wiki pages that have been deleted. | |
| 47 | 48 | |
| 48 | 49 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 49 | 50 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 50 | 51 | that the new repository is fully compatible with historical versions of |
| 51 | 52 | Fossil by having a valid manifest as RID 1. |
| 52 | 53 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -42,10 +42,11 @@ | |
| 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | changes on otherwise unmodified files. |
| 45 | * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't |
| 46 | already exist. |
| 47 | |
| 48 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 49 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 50 | that the new repository is fully compatible with historical versions of |
| 51 | Fossil by having a valid manifest as RID 1. |
| 52 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -42,10 +42,11 @@ | |
| 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | changes on otherwise unmodified files. |
| 45 | * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't |
| 46 | already exist. |
| 47 | * Inhibit timeline links to wiki pages that have been deleted. |
| 48 | |
| 49 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 50 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 51 | that the new repository is fully compatible with historical versions of |
| 52 | Fossil by having a valid manifest as RID 1. |
| 53 |
+1
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -42,10 +42,11 @@ | ||
| 42 | 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | 44 | changes on otherwise unmodified files. |
| 45 | 45 | * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't |
| 46 | 46 | already exist. |
| 47 | + * Inhibit timeline links to wiki pages that have been deleted. | |
| 47 | 48 | |
| 48 | 49 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 49 | 50 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 50 | 51 | that the new repository is fully compatible with historical versions of |
| 51 | 52 | Fossil by having a valid manifest as RID 1. |
| 52 | 53 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -42,10 +42,11 @@ | |
| 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | changes on otherwise unmodified files. |
| 45 | * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't |
| 46 | already exist. |
| 47 | |
| 48 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 49 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 50 | that the new repository is fully compatible with historical versions of |
| 51 | Fossil by having a valid manifest as RID 1. |
| 52 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -42,10 +42,11 @@ | |
| 42 | * Have [/help?cmd=changes|fossil changes] and |
| 43 | [/help?cmd=status|fossil status] report when executable or symlink status |
| 44 | changes on otherwise unmodified files. |
| 45 | * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't |
| 46 | already exist. |
| 47 | * Inhibit timeline links to wiki pages that have been deleted. |
| 48 | |
| 49 | <h2>Changes for Version 1.32 (2015-03-14)</h2> |
| 50 | * When creating a new repository using [/help?cmd=init|fossil init], ensure |
| 51 | that the new repository is fully compatible with historical versions of |
| 52 | Fossil by having a valid manifest as RID 1. |
| 53 |