Diff
Not logged in

Differences From:

File src/branch.c part of check-in [4d39bbac10] - Require that the "branch new" command specify a basis. Do not let it use the current check-out. Otherwise it gets confusing to users. by drh on 2009-01-20 22:38:56. [view]

To:

File src/branch.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]

@@ -212,5 +212,35 @@
   }else{
     fossil_panic("branch subcommand should be one of: "
                  "new list");
   }
+}
+
+/*
+** WEBPAGE: brlist
+**
+** Show a timeline of all branches
+*/
+void brlist_page(void){
+  Stmt q;
+
+  login_check_credentials();
+  if( !g.okRead ){ login_needed(); return; }
+
+  style_header("Branches");
+  login_anonymous_available();
+  db_prepare(&q,
+    "%s AND blob.rid IN (SELECT rid FROM tagxref WHERE tagtype>0 AND tagid=%d)"
+    " ORDER BY event.mtime DESC",
+    timeline_query_for_www(), TAG_NEWBRANCH
+  );
+  www_print_timeline(&q);
+  db_finalize(&q);
+  @ <br clear="both">
+  @ <script>
+  @ function xin(id){
+  @ }
+  @ function xout(id){
+  @ }
+  @ </script>
+  style_footer();
 }