Diff
Not logged in

Differences From:

File src/info.c part of check-in [3b3116e490] - Add a gray color option on the color changer. Help the "info" webpage to figure out that an artifact is a check-ins when the check-in changes no files relative to its parent (when the check-in only creates a new branch.) by drh on 2009-01-20 22:53:09. [view]

To:

File src/info.c part of check-in [fecb3e5cc9] - On the "vinfo" page, add a link to a timeline of all other check-ins with the same tag. by drh on 2009-01-20 23:39:50. [view]

@@ -370,12 +370,23 @@
     @ </td></tr>
     if( g.okHistory ){
       char *zShortUuid = mprintf("%.10s", zUuid);
       const char *zProjName = db_get("project-name", "unnamed");
+      Stmt q;
       @ <tr><th>Timelines:</th><td>
       @    <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">ancestors</a>
       @    | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)">descendants</a>
       @    | <a href="%s(g.zBaseURL)/timeline?d=%d(rid)&p=%d(rid)">both</a>
+      db_prepare(&q, "SELECT tag.tagid, tag.tagname FROM tagxref, tag "
+                     " WHERE rid=%d AND tagtype>0 "
+                     "   AND tag.tagid=tagxref.tagid "
+                     "   AND +tag.tagname GLOB 'sym-*'", rid);
+      while( db_step(&q)==SQLITE_ROW ){
+        int tagid = db_column_int(&q, 0);
+        const char *zTagName = db_column_text(&q, 1);
+        @  | <a href="%s(g.zBaseURL)/timeline?t=%d(tagid)">%h(&zTagName[4])</a>
+      }
+      db_finalize(&q);
       @ </td></tr>
       @ <tr><th>Commands:</th>
       @   <td>
       @     <a href="%s(g.zBaseURL)/vdiff/%d(rid)">diff</a>