Fossil SCM

Do not show merge links to phantoms in the graph.

drh 2010-12-31 03:23 trunk
Commit 8a1e384b333ffc399c8a7e3620bd02632c333756
+3 -1
--- src/timeline.c
+++ src/timeline.c
@@ -250,11 +250,13 @@
250250
const char *zBr;
251251
int gidx;
252252
static Stmt qparent;
253253
static Stmt qbranch;
254254
db_static_prepare(&qparent,
255
- "SELECT pid FROM plink WHERE cid=:rid ORDER BY isprim DESC /*sort*/"
255
+ "SELECT pid FROM plink"
256
+ " WHERE cid=:rid AND pid NOT IN phantom"
257
+ " ORDER BY isprim DESC /*sort*/"
256258
);
257259
db_static_prepare(&qbranch,
258260
"SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0 AND rid=:rid",
259261
TAG_BRANCH
260262
);
261263
--- src/timeline.c
+++ src/timeline.c
@@ -250,11 +250,13 @@
250 const char *zBr;
251 int gidx;
252 static Stmt qparent;
253 static Stmt qbranch;
254 db_static_prepare(&qparent,
255 "SELECT pid FROM plink WHERE cid=:rid ORDER BY isprim DESC /*sort*/"
 
 
256 );
257 db_static_prepare(&qbranch,
258 "SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0 AND rid=:rid",
259 TAG_BRANCH
260 );
261
--- src/timeline.c
+++ src/timeline.c
@@ -250,11 +250,13 @@
250 const char *zBr;
251 int gidx;
252 static Stmt qparent;
253 static Stmt qbranch;
254 db_static_prepare(&qparent,
255 "SELECT pid FROM plink"
256 " WHERE cid=:rid AND pid NOT IN phantom"
257 " ORDER BY isprim DESC /*sort*/"
258 );
259 db_static_prepare(&qbranch,
260 "SELECT value FROM tagxref WHERE tagid=%d AND tagtype>0 AND rid=:rid",
261 TAG_BRANCH
262 );
263
--- test/graph-test-1.wiki
+++ test/graph-test-1.wiki
@@ -19,5 +19,8 @@
1919
* [/timeline?t=creole]
2020
* [/timeline?t=release]
2121
* [/timeline?r=release]
2222
* [/finfo?name=Makefile]
2323
* [/timeline?a=1970-01-01]
24
+ * [/timeline?y=ci&n=1000000] - All checkins - a huge graph
25
+ * [/timeline?f=8dfed953f7530442] - This malformed commit has a
26
+ merge parent which is not a valid checkin.
2427
--- test/graph-test-1.wiki
+++ test/graph-test-1.wiki
@@ -19,5 +19,8 @@
19 * [/timeline?t=creole]
20 * [/timeline?t=release]
21 * [/timeline?r=release]
22 * [/finfo?name=Makefile]
23 * [/timeline?a=1970-01-01]
 
 
 
24
--- test/graph-test-1.wiki
+++ test/graph-test-1.wiki
@@ -19,5 +19,8 @@
19 * [/timeline?t=creole]
20 * [/timeline?t=release]
21 * [/timeline?r=release]
22 * [/finfo?name=Makefile]
23 * [/timeline?a=1970-01-01]
24 * [/timeline?y=ci&n=1000000] - All checkins - a huge graph
25 * [/timeline?f=8dfed953f7530442] - This malformed commit has a
26 merge parent which is not a valid checkin.
27

Keyboard Shortcuts

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