trac.versioncontrol.web_ui.util

trac.versioncontrol.web_ui.util.make_log_graph(repos, revs)

Generate graph information for the given revisions.

Returns a tuple (threads, vertices, columns), where:

  • threads: List of paint command lists [(type, column, line)], where type is either 0 for “move to” or 1 for “line to”, and column and line are coordinates.
  • vertices: List of (column, thread_index) tuples, where the i`th item specifies the column in which to draw the dot in line `i and the corresponding thread.
  • columns: Maximum width of the graph.
trac.versioncontrol.web_ui.util.render_zip(req, filename, repos, root_node, iter_nodes)

Send a ZIP file containing the data corresponding to the nodes iterable.

Parameters:
  • root_node (Node) – optional ancestor for all the nodes
  • iter_nodes – callable taking the optional root_node as input and generating the Node for which the content should be added into the zip.