/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 branchview/treemodel.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-18 13:01:03 UTC
  • Revision ID: jelmer@samba.org-20110218130103-fiyk203auk28thpn
Remove some unused imports, fix some formatting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
import gtk
11
11
import gobject
12
 
import pango
13
12
import re
14
13
from xml.sax.saxutils import escape
15
14
from bzrlib.revision import NULL_REVISION
29
28
PARENTS = 10
30
29
CHILDREN = 11
31
30
TAGS = 12
 
31
AUTHORS = 13
32
32
 
33
33
class TreeModel(gtk.GenericTreeModel):
34
34
 
35
 
    
36
35
    def __init__ (self, branch, line_graph_data):
37
36
        gtk.GenericTreeModel.__init__(self)
38
37
        self.revisions = {}
39
 
        self.branch = branch
 
38
        self.branch = branch
40
39
        self.repository = branch.repository
41
40
        self.line_graph_data = line_graph_data
42
41
 
43
 
        if self.branch.supports_tags():
 
42
        if self.branch.supports_tags():
44
43
            self.tags = self.branch.tags.get_reverse_tag_dict()
45
44
        else:
46
45
            self.tags = {}