Fossil SCM

Use a "disjoint" timeline for the display of ancestor and descendent graphs.

drh 2014-12-23 12:20 trunk
Commit 4f2f04495c2a51f302d16186b7a53d49bf6d2633
1 file changed +4 -3
+4 -3
--- src/timeline.c
+++ src/timeline.c
@@ -1074,11 +1074,11 @@
10741074
const char *zYearMonth = P("ym"); /* Show checkins for the given YYYY-MM */
10751075
const char *zYearWeek = P("yw"); /* Show checkins for the given YYYY-WW (week-of-year)*/
10761076
int useDividers = P("nd")==0; /* Show dividers if "nd" is missing */
10771077
int renameOnly = P("namechng")!=0; /* Show only checkins that rename files */
10781078
int tagid; /* Tag ID */
1079
- int tmFlags; /* Timeline flags */
1079
+ int tmFlags = 0; /* Timeline flags */
10801080
const char *zThisTag = 0; /* Suppress links to this tag */
10811081
const char *zThisUser = 0; /* Suppress links to this user */
10821082
HQuery url; /* URL for various branch links */
10831083
int from_rid = name_to_typed_rid(P("from"),"ci"); /* from= for paths */
10841084
int to_rid = name_to_typed_rid(P("to"),"ci"); /* to= for path timelines */
@@ -1114,13 +1114,13 @@
11141114
){
11151115
zCirca = zBefore = zAfter = 0;
11161116
nEntry = -1;
11171117
}
11181118
if( zType[0]=='a' ){
1119
- tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
1119
+ tmFlags |= TIMELINE_BRIEF | TIMELINE_GRAPH;
11201120
}else{
1121
- tmFlags = TIMELINE_GRAPH;
1121
+ tmFlags |= TIMELINE_GRAPH;
11221122
}
11231123
if( nEntry>0 ) url_add_parameter(&url, "n", mprintf("%d", nEntry));
11241124
if( P("ng")!=0 || zSearch!=0 ){
11251125
tmFlags &= ~TIMELINE_GRAPH;
11261126
url_add_parameter(&url, "ng", 0);
@@ -1210,10 +1210,11 @@
12101210
}else if( (p_rid || d_rid) && g.perm.Read ){
12111211
/* If p= or d= is present, ignore all other parameters other than n= */
12121212
char *zUuid;
12131213
int np, nd;
12141214
1215
+ tmFlags |= TIMELINE_DISJOINT;
12151216
if( p_rid && d_rid ){
12161217
if( p_rid!=d_rid ) p_rid = d_rid;
12171218
if( P("n")==0 ) nEntry = 10;
12181219
}
12191220
db_multi_exec(
12201221
--- src/timeline.c
+++ src/timeline.c
@@ -1074,11 +1074,11 @@
1074 const char *zYearMonth = P("ym"); /* Show checkins for the given YYYY-MM */
1075 const char *zYearWeek = P("yw"); /* Show checkins for the given YYYY-WW (week-of-year)*/
1076 int useDividers = P("nd")==0; /* Show dividers if "nd" is missing */
1077 int renameOnly = P("namechng")!=0; /* Show only checkins that rename files */
1078 int tagid; /* Tag ID */
1079 int tmFlags; /* Timeline flags */
1080 const char *zThisTag = 0; /* Suppress links to this tag */
1081 const char *zThisUser = 0; /* Suppress links to this user */
1082 HQuery url; /* URL for various branch links */
1083 int from_rid = name_to_typed_rid(P("from"),"ci"); /* from= for paths */
1084 int to_rid = name_to_typed_rid(P("to"),"ci"); /* to= for path timelines */
@@ -1114,13 +1114,13 @@
1114 ){
1115 zCirca = zBefore = zAfter = 0;
1116 nEntry = -1;
1117 }
1118 if( zType[0]=='a' ){
1119 tmFlags = TIMELINE_BRIEF | TIMELINE_GRAPH;
1120 }else{
1121 tmFlags = TIMELINE_GRAPH;
1122 }
1123 if( nEntry>0 ) url_add_parameter(&url, "n", mprintf("%d", nEntry));
1124 if( P("ng")!=0 || zSearch!=0 ){
1125 tmFlags &= ~TIMELINE_GRAPH;
1126 url_add_parameter(&url, "ng", 0);
@@ -1210,10 +1210,11 @@
1210 }else if( (p_rid || d_rid) && g.perm.Read ){
1211 /* If p= or d= is present, ignore all other parameters other than n= */
1212 char *zUuid;
1213 int np, nd;
1214
 
1215 if( p_rid && d_rid ){
1216 if( p_rid!=d_rid ) p_rid = d_rid;
1217 if( P("n")==0 ) nEntry = 10;
1218 }
1219 db_multi_exec(
1220
--- src/timeline.c
+++ src/timeline.c
@@ -1074,11 +1074,11 @@
1074 const char *zYearMonth = P("ym"); /* Show checkins for the given YYYY-MM */
1075 const char *zYearWeek = P("yw"); /* Show checkins for the given YYYY-WW (week-of-year)*/
1076 int useDividers = P("nd")==0; /* Show dividers if "nd" is missing */
1077 int renameOnly = P("namechng")!=0; /* Show only checkins that rename files */
1078 int tagid; /* Tag ID */
1079 int tmFlags = 0; /* Timeline flags */
1080 const char *zThisTag = 0; /* Suppress links to this tag */
1081 const char *zThisUser = 0; /* Suppress links to this user */
1082 HQuery url; /* URL for various branch links */
1083 int from_rid = name_to_typed_rid(P("from"),"ci"); /* from= for paths */
1084 int to_rid = name_to_typed_rid(P("to"),"ci"); /* to= for path timelines */
@@ -1114,13 +1114,13 @@
1114 ){
1115 zCirca = zBefore = zAfter = 0;
1116 nEntry = -1;
1117 }
1118 if( zType[0]=='a' ){
1119 tmFlags |= TIMELINE_BRIEF | TIMELINE_GRAPH;
1120 }else{
1121 tmFlags |= TIMELINE_GRAPH;
1122 }
1123 if( nEntry>0 ) url_add_parameter(&url, "n", mprintf("%d", nEntry));
1124 if( P("ng")!=0 || zSearch!=0 ){
1125 tmFlags &= ~TIMELINE_GRAPH;
1126 url_add_parameter(&url, "ng", 0);
@@ -1210,10 +1210,11 @@
1210 }else if( (p_rid || d_rid) && g.perm.Read ){
1211 /* If p= or d= is present, ignore all other parameters other than n= */
1212 char *zUuid;
1213 int np, nd;
1214
1215 tmFlags |= TIMELINE_DISJOINT;
1216 if( p_rid && d_rid ){
1217 if( p_rid!=d_rid ) p_rid = d_rid;
1218 if( P("n")==0 ) nEntry = 10;
1219 }
1220 db_multi_exec(
1221

Keyboard Shortcuts

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