Fossil SCM

Inhibit timeline links to wiki pages that have been deleted.

drh 2015-05-18 14:09 trunk merge
Commit 425df28c0258cc07ab922b13019af0291783843e
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1151,11 +1151,13 @@
11511151
return zTarget+5;
11521152
}
11531153
if( strcmp(zTarget, "Sandbox")==0 ) return zTarget;
11541154
if( wiki_name_is_wellformed((const unsigned char *)zTarget)
11551155
&& ((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))
11571159
){
11581160
return zTarget;
11591161
}
11601162
return 0;
11611163
}
11621164
--- 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
--- www/changes.wiki
+++ www/changes.wiki
@@ -42,10 +42,11 @@
4242
* Have [/help?cmd=changes|fossil changes] and
4343
[/help?cmd=status|fossil status] report when executable or symlink status
4444
changes on otherwise unmodified files.
4545
* Create parent directories of [/help?cmd=settings|empty-dirs] if they don't
4646
already exist.
47
+ * Inhibit timeline links to wiki pages that have been deleted.
4748
4849
<h2>Changes for Version 1.32 (2015-03-14)</h2>
4950
* When creating a new repository using [/help?cmd=init|fossil init], ensure
5051
that the new repository is fully compatible with historical versions of
5152
Fossil by having a valid manifest as RID 1.
5253
--- 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
--- www/changes.wiki
+++ www/changes.wiki
@@ -42,10 +42,11 @@
4242
* Have [/help?cmd=changes|fossil changes] and
4343
[/help?cmd=status|fossil status] report when executable or symlink status
4444
changes on otherwise unmodified files.
4545
* Create parent directories of [/help?cmd=settings|empty-dirs] if they don't
4646
already exist.
47
+ * Inhibit timeline links to wiki pages that have been deleted.
4748
4849
<h2>Changes for Version 1.32 (2015-03-14)</h2>
4950
* When creating a new repository using [/help?cmd=init|fossil init], ensure
5051
that the new repository is fully compatible with historical versions of
5152
Fossil by having a valid manifest as RID 1.
5253
--- 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

Keyboard Shortcuts

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