Diff
Not logged in

Differences From:

File src/info.c part of check-in [89de100a2d] - Fix a bug in the check-in comment editor. Ticket 4b40f57449. by drh on 2008-07-24 15:02:37. [view]

To:

File src/info.c part of check-in [3984b1b2c1] - Make the info web page handle symbolic tags as well as UUIDs. Start trying to make the currently-disabled tagview page more useful. by eric on 2008-08-04 20:46:52. [view]

@@ -912,15 +912,32 @@
 ** Figure out what the UUID is and jump to it.
 */
 void info_page(void){
   const char *zName;
+  Blob uuid;
   int rid, nName;
 
   zName = P("name");
   if( zName==0 ) fossil_redirect_home();
   nName = strlen(zName);
   if( nName<4 || nName>UUID_SIZE || !validate16(zName, nName) ){
-    fossil_redirect_home();
+    switch( sym_tag_to_uuid(zName, &uuid) ){
+      case 1: {
+        /* got one UUID, use it */
+        zName = blob_str(&uuid);
+        break;
+      }
+      case 2: {
+        /* go somewhere to show the multiple UUIDs */
+        tagview_page();
+        return;
+        break;
+      }
+      default: {
+        fossil_redirect_home();
+        break;
+      }
+    }
   }
   if( db_exists("SELECT 1 FROM ticket WHERE tkt_uuid GLOB '%s*'", zName) ){
     tktview_page();
     return;