/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: Daniel Schierbeck
  • Date: 2008-01-21 17:23:10 UTC
  • mto: (423.1.8 trunk)
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: daniel.schierbeck@gmail.com-20080121172310-l4o0m19lc6ghhulh
Moved tag writing logic inside the branchview treemodel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
            self.tags = self.branch.tags.get_reverse_tag_dict()
43
43
        else:
44
44
            self.tags = {}
45
 
    
 
45
 
 
46
    def add_tag(self, tag, revid):
 
47
        self.branch.tags.set_tag(tag, revid)
 
48
        try:
 
49
            self.tags[revid].append(tag)
 
50
        except KeyError:
 
51
            self.tags[revid] = [tag]
 
52
 
46
53
    def on_get_flags(self):
47
54
        return gtk.TREE_MODEL_LIST_ONLY
48
55