subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1241529 - /subversion/trunk/tools/dev/mergegraph/mergegraph.py
Date Tue, 07 Feb 2012 17:40:29 GMT
Author: julianfoad
Date: Tue Feb  7 17:40:29 2012
New Revision: 1241529

URL: http://svn.apache.org/viewvc?rev=1241529&view=rev
Log:
* ../tools/dev/mergegraph/mergegraph.py
  (add_annotation): Change the annotation style to a pale blue background.

Modified:
    subversion/trunk/tools/dev/mergegraph/mergegraph.py

Modified: subversion/trunk/tools/dev/mergegraph/mergegraph.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/mergegraph/mergegraph.py?rev=1241529&r1=1241528&r2=1241529&view=diff
==============================================================================
--- subversion/trunk/tools/dev/mergegraph/mergegraph.py (original)
+++ subversion/trunk/tools/dev/mergegraph/mergegraph.py Tue Feb  7 17:40:29 2012
@@ -167,7 +167,7 @@ class MergeGraph(pydot.Graph):
     # Merge edge
     graph.mk_merge_edge(src_node, tgt_node, kind, kind, important)
 
-  def add_annotation(graph, node, label, color='red'):
+  def add_annotation(graph, node, label, color='lightblue'):
     """Add a graph node that serves as an annotation to a normal node.
        More than one annotation can be added to the same normal node."""
     subg_name = node + '_annotations'
@@ -189,8 +189,10 @@ class MergeGraph(pydot.Graph):
     ann_node = node + '_'
     while g.get_node(ann_node):
       ann_node = ann_node + '_'
-    g.add_node(Node(ann_node, shape='box', color=color, label='"' + label + '"'))
-    g.add_edge(Edge(ann_node, node, style='dotted', color=color, dir='none', constraint='false'))
+    g.add_node(Node(ann_node, shape='box', style='filled', color=color,
+                    label='"' + label + '"'))
+    g.add_edge(Edge(ann_node, node, style='solid', color=color,
+                    dir='none', constraint='false'))
 
 class MergeSubgraph(MergeGraph, pydot.Subgraph):
   """"""



Mime
View raw message