Fossil SCM

Add the "ng" query parameter to the "timeline" to disable the graph.

drh 2010-02-09 11:13 trunk
Commit 2f22c476c151aad67442669e27d7f28bca9d7431
1 file changed +4
--- src/timeline.c
+++ src/timeline.c
@@ -633,10 +633,11 @@
633633
** d=RID artifact RID and up to COUNT descendants
634634
** t=TAGID show only check-ins with the given tagid
635635
** u=USER only if belonging to this user
636636
** y=TYPE 'ci', 'w', 't'
637637
** s=TEXT string search (comment and brief)
638
+** ng Suppress the graph if present
638639
**
639640
** p= and d= can appear individually or together. If either p= or d=
640641
** appear, then u=, y=, a=, and b= are ignored.
641642
**
642643
** If a= and b= appear, only a= is used. If neither appear, the most
@@ -674,10 +675,13 @@
674675
if( zType[0]=='a' ){
675676
tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
676677
}else{
677678
tmFlags = TIMELINE_GRAPH;
678679
}
680
+ if( P("ng")!=0 ){
681
+ tmFlags &= ~TIMELINE_GRAPH;
682
+ }
679683
680684
style_header("Timeline");
681685
login_anonymous_available();
682686
timeline_temp_table();
683687
blob_zero(&sql);
684688
--- src/timeline.c
+++ src/timeline.c
@@ -633,10 +633,11 @@
633 ** d=RID artifact RID and up to COUNT descendants
634 ** t=TAGID show only check-ins with the given tagid
635 ** u=USER only if belonging to this user
636 ** y=TYPE 'ci', 'w', 't'
637 ** s=TEXT string search (comment and brief)
 
638 **
639 ** p= and d= can appear individually or together. If either p= or d=
640 ** appear, then u=, y=, a=, and b= are ignored.
641 **
642 ** If a= and b= appear, only a= is used. If neither appear, the most
@@ -674,10 +675,13 @@
674 if( zType[0]=='a' ){
675 tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
676 }else{
677 tmFlags = TIMELINE_GRAPH;
678 }
 
 
 
679
680 style_header("Timeline");
681 login_anonymous_available();
682 timeline_temp_table();
683 blob_zero(&sql);
684
--- src/timeline.c
+++ src/timeline.c
@@ -633,10 +633,11 @@
633 ** d=RID artifact RID and up to COUNT descendants
634 ** t=TAGID show only check-ins with the given tagid
635 ** u=USER only if belonging to this user
636 ** y=TYPE 'ci', 'w', 't'
637 ** s=TEXT string search (comment and brief)
638 ** ng Suppress the graph if present
639 **
640 ** p= and d= can appear individually or together. If either p= or d=
641 ** appear, then u=, y=, a=, and b= are ignored.
642 **
643 ** If a= and b= appear, only a= is used. If neither appear, the most
@@ -674,10 +675,13 @@
675 if( zType[0]=='a' ){
676 tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
677 }else{
678 tmFlags = TIMELINE_GRAPH;
679 }
680 if( P("ng")!=0 ){
681 tmFlags &= ~TIMELINE_GRAPH;
682 }
683
684 style_header("Timeline");
685 login_anonymous_available();
686 timeline_temp_table();
687 blob_zero(&sql);
688

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button