Fossil SCM

Inhibit timeline links to wiki pages that have been deleted.

andygoth 2015-05-17 19:42 UTC trunk
Commit e6dae0228d338f72da610beb9b829fe32f7913fc
--- 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
@@ -40,10 +40,11 @@
4040
symlink. Additionally show the UUID for files whose types have changed
4141
without changing contents or symlink target.
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.
45
+ * Inhibit timeline links to wiki pages that have been deleted.
4546
4647
<h2>Changes for Version 1.32 (2015-03-14)</h2>
4748
* When creating a new repository using [/help?cmd=init|fossil init], ensure
4849
that the new repository is fully compatible with historical versions of
4950
Fossil by having a valid manifest as RID 1.
5051
--- www/changes.wiki
+++ www/changes.wiki
@@ -40,10 +40,11 @@
40 symlink. Additionally show the UUID for files whose types have changed
41 without changing contents or symlink target.
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
46 <h2>Changes for Version 1.32 (2015-03-14)</h2>
47 * When creating a new repository using [/help?cmd=init|fossil init], ensure
48 that the new repository is fully compatible with historical versions of
49 Fossil by having a valid manifest as RID 1.
50
--- www/changes.wiki
+++ www/changes.wiki
@@ -40,10 +40,11 @@
40 symlink. Additionally show the UUID for files whose types have changed
41 without changing contents or symlink target.
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 * Inhibit timeline links to wiki pages that have been deleted.
46
47 <h2>Changes for Version 1.32 (2015-03-14)</h2>
48 * When creating a new repository using [/help?cmd=init|fossil init], ensure
49 that the new repository is fully compatible with historical versions of
50 Fossil by having a valid manifest as RID 1.
51

Keyboard Shortcuts

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