/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 branchwin.py

  • Committer: David Allouche
  • Date: 2005-12-03 13:13:08 UTC
  • Revision ID: david.allouche@canonical.com-20051203131308-3aa4e899b01becd3
add --maxnum option to cut-off long histories

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
 
223
223
        return vbox
224
224
 
225
 
    def set_branch(self, branch, start, robust, accurate):
 
225
    def set_branch(self, branch, start, robust, accurate, maxnum):
226
226
        """Set the branch and start position for this window.
227
227
 
228
228
        Creates a new TreeModel and populates it with information about
242
242
 
243
243
        last_lines = []
244
244
        (revids, self.revisions, colours, self.children, self.parent_ids) \
245
 
                 = distances(branch, start, robust, accurate)
 
245
                 = distances(branch, start, robust, accurate, maxnum)
246
246
        for revision, node, lines in graph(
247
247
                revids, self.revisions, colours, self.parent_ids):
248
248
            message = revision.message.split("\n")[0]