# # # patch "TODO" # from [6372d06a8696794b11e1f5dece588de4d1057896] # to [79418178163f83533558e694b952d06230f0c8aa] # # patch "viewmtn.py" # from [28068d341afb109738f18e1e0d6e2d96192ee710] # to [c729e83bf6d36d4680f6f2d288765e4c75d46ea5] # ============================================================ --- TODO 6372d06a8696794b11e1f5dece588de4d1057896 +++ TODO 79418178163f83533558e694b952d06230f0c8aa @@ -1,7 +1,14 @@ -BUGS: +NEW VERSION - * \n in title of the ancestry graph + * Icons should display + * README, Documentation + * Fix the RSS date fields + * JSON + * Highlight -> content_type mapping (works at the moment, somehow) + * show propogates as dotted lines! + +BUGS: TODO: ============================================================ --- viewmtn.py 28068d341afb109738f18e1e0d6e2d96192ee710 +++ viewmtn.py c729e83bf6d36d4680f6f2d288765e4c75d46ea5 @@ -491,7 +491,7 @@ class RevisionInfo(RevisionPage): revisions = ops.get_revision(revision) output_png, output_imagemap = ancestry_graph(revision) if os.access(output_imagemap, os.R_OK): - imagemap = open(output_imagemap).read() + imagemap = open(output_imagemap).read().replace('\\n', ' by ') imageuri = dynamic_join('/revision/graph/' + revision) else: imagemap = imageuri = None @@ -822,6 +822,7 @@ def ancestry_dot(revision): sat = f(2) * 0.5 + .5 return ''.join(["%.2x" % int(x * 256) for x in hls_to_rgb(hue, li, sat)]) + # for now, let's do three passes; seems to work fairly well nodes.add(revision) for i in xrange(3): graph_build_iter() @@ -888,7 +889,11 @@ digraph ancestry { graph += ' "%s" [style="invis",label=""]\n' % (node) for (from_node, to_node) in arcs: - graph += ' "%s"->"%s"\n' % (from_node, to_node) + if node_in_branch.has_key(from_node) and node_in_branch.has_key(to_node): + style = "solid" + else: + style = "dashed" + graph += ' "%s"->"%s" [style="%s"]\n' % (from_node, to_node, style) graph += '}' return graph