Fossil SCM

Tweaks to the graph layout. Add a graph to ticket timelines.

drh 2010-11-17 13:38 trunk
Commit cf178577ec43ed804a906ef5b0f0ec3dcbc71bdc
2 files changed +2 -2 +1 -1
+2 -2
--- src/graph.c
+++ src/graph.c
@@ -299,11 +299,11 @@
299299
}
300300
}
301301
302302
/* Find the pChild pointer for each node.
303303
**
304
- ** The pChild points to node directly above on the same rail.
304
+ ** The pChild points to the node directly above on the same rail.
305305
** The pChild must be in the same branch. Leaf nodes have a NULL
306306
** pChild.
307307
**
308308
** In the case of a fork, choose the pChild that results in the
309309
** longest rail.
@@ -380,11 +380,11 @@
380380
}
381381
pRow->iRail = findFreeRail(p, 0, pParent->idx, inUse, pParent->iRail);
382382
pParent->aiRaiser[pRow->iRail] = pRow->idx;
383383
}
384384
mask = 1<<pRow->iRail;
385
- if( pRow->pPrev ) pRow->pPrev->railInUse |= mask;
385
+/* if( pRow->pPrev ) pRow->pPrev->railInUse |= mask; */
386386
if( pRow->pNext ) pRow->pNext->railInUse |= mask;
387387
if( pRow->pChild==0 ){
388388
inUse &= ~mask;
389389
}else{
390390
inUse |= mask;
391391
--- src/graph.c
+++ src/graph.c
@@ -299,11 +299,11 @@
299 }
300 }
301
302 /* Find the pChild pointer for each node.
303 **
304 ** The pChild points to node directly above on the same rail.
305 ** The pChild must be in the same branch. Leaf nodes have a NULL
306 ** pChild.
307 **
308 ** In the case of a fork, choose the pChild that results in the
309 ** longest rail.
@@ -380,11 +380,11 @@
380 }
381 pRow->iRail = findFreeRail(p, 0, pParent->idx, inUse, pParent->iRail);
382 pParent->aiRaiser[pRow->iRail] = pRow->idx;
383 }
384 mask = 1<<pRow->iRail;
385 if( pRow->pPrev ) pRow->pPrev->railInUse |= mask;
386 if( pRow->pNext ) pRow->pNext->railInUse |= mask;
387 if( pRow->pChild==0 ){
388 inUse &= ~mask;
389 }else{
390 inUse |= mask;
391
--- src/graph.c
+++ src/graph.c
@@ -299,11 +299,11 @@
299 }
300 }
301
302 /* Find the pChild pointer for each node.
303 **
304 ** The pChild points to the node directly above on the same rail.
305 ** The pChild must be in the same branch. Leaf nodes have a NULL
306 ** pChild.
307 **
308 ** In the case of a fork, choose the pChild that results in the
309 ** longest rail.
@@ -380,11 +380,11 @@
380 }
381 pRow->iRail = findFreeRail(p, 0, pParent->idx, inUse, pParent->iRail);
382 pParent->aiRaiser[pRow->iRail] = pRow->idx;
383 }
384 mask = 1<<pRow->iRail;
385 /* if( pRow->pPrev ) pRow->pPrev->railInUse |= mask; */
386 if( pRow->pNext ) pRow->pNext->railInUse |= mask;
387 if( pRow->pChild==0 ){
388 inUse &= ~mask;
389 }else{
390 inUse |= mask;
391
+1 -1
--- src/tkt.c
+++ src/tkt.c
@@ -703,11 +703,11 @@
703703
timeline_query_for_www(), tagid, zFullUuid, zFullUuid, zFullUuid
704704
);
705705
}
706706
db_prepare(&q, zSQL);
707707
free(zSQL);
708
- www_print_timeline(&q, TIMELINE_ARTID, 0);
708
+ www_print_timeline(&q, TIMELINE_ARTID|TIMELINE_DISJOINT|TIMELINE_GRAPH, 0);
709709
db_finalize(&q);
710710
style_footer();
711711
}
712712
713713
/*
714714
--- src/tkt.c
+++ src/tkt.c
@@ -703,11 +703,11 @@
703 timeline_query_for_www(), tagid, zFullUuid, zFullUuid, zFullUuid
704 );
705 }
706 db_prepare(&q, zSQL);
707 free(zSQL);
708 www_print_timeline(&q, TIMELINE_ARTID, 0);
709 db_finalize(&q);
710 style_footer();
711 }
712
713 /*
714
--- src/tkt.c
+++ src/tkt.c
@@ -703,11 +703,11 @@
703 timeline_query_for_www(), tagid, zFullUuid, zFullUuid, zFullUuid
704 );
705 }
706 db_prepare(&q, zSQL);
707 free(zSQL);
708 www_print_timeline(&q, TIMELINE_ARTID|TIMELINE_DISJOINT|TIMELINE_GRAPH, 0);
709 db_finalize(&q);
710 style_footer();
711 }
712
713 /*
714

Keyboard Shortcuts

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