Fossil SCM

Dot export extended, allow graph to define label color for highlighting.

aku 2007-11-25 07:31 trunk
Commit eb43120ac13c419dd84aa5cc8813ddb6fc77b70e
--- tools/cvs2fossil/lib/dot.tcl
+++ tools/cvs2fossil/lib/dot.tcl
@@ -37,11 +37,11 @@
3737
set nodes $subgraph
3838
set arcs [eval [linsert $subgraph 0 $g arcs -inner]]
3939
}
4040
4141
foreach n $nodes {
42
- set style [Style $g node $n {label label shape shape}]
42
+ set style [Style $g node $n {label label shape shape fontcolor fontcolor}]
4343
lappend lines "\"$n\" ${style};"
4444
}
4545
foreach a $arcs {
4646
set style [Style $g arc $a {color color}]
4747
lappend lines "\"[$g arc source $a]\" -> \"[$g arc target $a]\" ${style};"
4848
--- tools/cvs2fossil/lib/dot.tcl
+++ tools/cvs2fossil/lib/dot.tcl
@@ -37,11 +37,11 @@
37 set nodes $subgraph
38 set arcs [eval [linsert $subgraph 0 $g arcs -inner]]
39 }
40
41 foreach n $nodes {
42 set style [Style $g node $n {label label shape shape}]
43 lappend lines "\"$n\" ${style};"
44 }
45 foreach a $arcs {
46 set style [Style $g arc $a {color color}]
47 lappend lines "\"[$g arc source $a]\" -> \"[$g arc target $a]\" ${style};"
48
--- tools/cvs2fossil/lib/dot.tcl
+++ tools/cvs2fossil/lib/dot.tcl
@@ -37,11 +37,11 @@
37 set nodes $subgraph
38 set arcs [eval [linsert $subgraph 0 $g arcs -inner]]
39 }
40
41 foreach n $nodes {
42 set style [Style $g node $n {label label shape shape fontcolor fontcolor}]
43 lappend lines "\"$n\" ${style};"
44 }
45 foreach a $arcs {
46 set style [Style $g arc $a {color color}]
47 lappend lines "\"[$g arc source $a]\" -> \"[$g arc target $a]\" ${style};"
48

Keyboard Shortcuts

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