Diff
Not logged in

Differences From:

File src/branch.c part of check-in [bdcac62937] - After each item of the branch list, give a hyperlink to the timeline that shows all check-ins with the branch tag. by drh on 2009-01-21 03:34:37. [view]

To:

File src/branch.c part of check-in [e631d8af6d] - Improvements to the timeline when displaying check-ins with a given tag. by drh on 2009-01-21 18:42:19. [view]

@@ -222,9 +222,9 @@
 */
 static void brlist_extra(int rid){
   Stmt q;
   db_prepare(&q,
-    "SELECT tagname, tagxref.tagid FROM tagxref, tag"
+    "SELECT substr(tagname,5) FROM tagxref, tag"
     " WHERE tagxref.rid=%d"
     "   AND tagxref.tagid=tag.tagid"
     "   AND tagxref.tagtype>0"
     "   AND tag.tagname GLOB 'sym-*'",
@@ -231,10 +231,9 @@
     rid
   );
   while( db_step(&q)==SQLITE_ROW ){
     const char *zTagName = db_column_text(&q, 0);
-    int tagid = db_column_int(&q, 1);
-    @ [<a href="%s(g.zBaseURL)/timeline?t=%d(tagid)">%h(&zTagName[4])</a>]
+    @ [<a href="%s(g.zBaseURL)/timeline?t=%T(zTagName)">%h(zTagName)</a>]
   }
   db_finalize(&q);
 }