Diff
Not logged in

Differences From:

File src/branch.c part of check-in [b6e22e62cf] - Attempting to rationalize the tagging and branching logic. The "branch" command has been resurrected and appears to work now. The "tag branch" command has been removed. Special tags "newbranch" and "closed" used to manage branches. New changes are not well-tested - use with caution. You must "rebuild" when upgrading through this version. by drh on 2009-01-20 16:51:19. [view]

To:

File src/branch.c part of check-in [b7f32a71ab] - Add web-based branch color changer. Add the "branch list" command. Simplifications to color propagation logic. by drh on 2009-01-20 22:21:24. [view]

@@ -205,10 +205,19 @@
   n = strlen(g.argv[2]);
   if( n>=2 && strncmp(g.argv[2],"new",n)==0 ){
     branch_new();
   }else if( n>=2 && strncmp(g.argv[2],"list",n)==0 ){
-    fossil_panic("branch list is not yet completed");
+    Stmt q;
+    db_prepare(&q,
+      "%s"
+      "   AND blob.rid IN (SELECT rid FROM tagxref"
+      "                     WHERE tagid=%d AND tagtype==1)"
+      " ORDER BY event.mtime DESC",
+      timeline_query_for_tty(), TAG_NEWBRANCH
+    );
+    print_timeline(&q, 2000);
+    db_finalize(&q);
   }else{
     fossil_panic("branch subcommand should be one of: "
                  "new list");
   }
 }