/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/branchwin.py

  • Committer: John Arbash Meinel
  • Date: 2007-09-21 17:42:04 UTC
  • mto: (322.1.1 trunk) (330.3.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 279.
  • Revision ID: john@arbash-meinel.com-20070921174204-ux87radq4k80m8zg
Pass in the maxnum value to the distances function.
That way we can avoid actually reading all Revisions for the entire
graph.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
        
185
185
        last_lines = []
186
186
        (self.revisions, colours, self.children, self.parent_ids,
187
 
            merge_sorted) = distances(self.branch.repository, start)
 
187
            merge_sorted) = distances(self.branch.repository, start,
 
188
                                      maxnum=maxnum)
188
189
        for (index, (revision, node, lines)) in enumerate(graph(
189
190
                self.revisions, colours, merge_sorted)):
190
191
            # FIXME: at this point we should be able to show the graph order