Diff
Not logged in

Differences From:

File src/info.c part of check-in [649dd8a6af] - got rid of '... might be used initialized' warnings by stephan on 2008-02-03 16:35:12. [view]

To:

File src/info.c part of check-in [eae7ddfa4e] - Add support for annotation in the web interface. by drh on 2008-02-04 18:28:55. [view]

@@ -456,9 +456,9 @@
   db_prepare(&q,
     "SELECT a.uuid, substr(b.uuid,1,10), datetime(event.mtime,'localtime'),"
     "       coalesce(event.ecomment, event.comment),"
     "       coalesce(event.euser, event.user),"
-    "       mlink.pid, mlink.fid"
+    "       mlink.pid, mlink.fid, mlink.mid, mlink.fnid"
     "  FROM mlink, blob a, blob b, event"
     " WHERE mlink.fnid=(SELECT fnid FROM filename WHERE name=%Q)"
     "   AND a.rid=mlink.mid"
     "   AND b.rid=mlink.fid"
@@ -475,8 +475,10 @@
     const char *zCom = db_column_text(&q, 3);
     const char *zUser = db_column_text(&q, 4);
     int fpid = db_column_int(&q, 5);
     int frid = db_column_int(&q, 6);
+    int mid = db_column_int(&q, 7);
+    int fnid = db_column_int(&q, 8);
     if( memcmp(zDate, zPrevDate, 10) ){
       sprintf(zPrevDate, "%.10s", zDate);
       @ <tr><td colspan=3>
       @ <table cellpadding=2 border=0>
@@ -496,8 +498,10 @@
     @ <a href="%s(g.zBaseURL)/fview/%d(frid)">[view]</a>
     if( fpid ){
       @ <a href="%s(g.zBaseURL)/fdiff?v1=%d(fpid)&amp;v2=%d(frid)">[diff]</a>
     }
+    @ <a href="%s(g.zBaseURL)/annotate?mid=%d(mid)&amp;fnid=%d(fnid)">
+    @ [annotate]</a>
     @ </td>
   }
   db_finalize(&q);
   @ </table>