/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: 2006-05-08 13:03:59 UTC
  • Revision ID: david.allouche@canonical.com-20060508130359-f9a471d0d0b1dcf2
remove --robust, pyflakes fixes, update README

Thanks to Robert Collins' new graphing logic, the --robust option is
no longer needed to prevent extreme graph width on broken branches.
That allows removing a bunch of flaky code.

Remove a few spurious imports (thanks to pyflakes).

Update README to request bzr>=0.8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
__author__    = "Scott James Remnant <scott@ubuntu.com>"
11
11
 
12
12
 
13
 
import os
14
 
 
15
13
import gtk
16
14
import gobject
17
15
import pango
238
236
 
239
237
        return vbox
240
238
 
241
 
    def set_branch(self, branch, start, robust, maxnum):
 
239
    def set_branch(self, branch, start, maxnum):
242
240
        """Set the branch and start position for this window.
243
241
 
244
242
        Creates a new TreeModel and populates it with information about
257
255
        index = 0
258
256
 
259
257
        last_lines = []
260
 
        (self.revisions, colours, self.children, self.parent_ids, merge_sorted) \
261
 
                 = distances(branch, start, robust, maxnum)
 
258
        (self.revisions, colours, self.children, self.parent_ids,
 
259
         merge_sorted) = distances(branch, start, maxnum)
262
260
        for revision, node, lines in graph(
263
261
                self.revisions, colours, merge_sorted):
264
262
            # FIXME: at this point we should be able to show the graph order and