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

  • Committer: Jelmer Vernooij
  • Date: 2006-05-19 16:56:46 UTC
  • mfrom: (0.1.25 gannotate)
  • Revision ID: jelmer@samba.org-20060519165646-0d867938fdbc9097
Merge in Dan Loda's gannotate plugin and put it in annotate/

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
from cStringIO import StringIO
16
14
 
17
15
import gtk
18
 
import gobject
19
16
import pango
20
17
 
21
18
try:
109
106
        Compares the two trees and populates the window with the
110
107
        differences.
111
108
        """
112
 
        self.rev_tree = branch.revision_tree(revid)
113
 
        self.parent_tree = branch.revision_tree(parentid)
 
109
        self.rev_tree = branch.repository.revision_tree(revid)
 
110
        self.parent_tree = branch.repository.revision_tree(parentid)
114
111
 
115
112
        self.model.clear()
116
113
        delta = compare_trees(self.parent_tree, self.rev_tree)
139
136
                self.model.append(titer, [ path, path ])
140
137
 
141
138
        self.treeview.expand_all()
142
 
        self.set_title(os.path.basename(branch.base) + " - bzrk diff")
 
139
        self.set_title(revid + " - " + branch.nick + " - bzrk diff")
143
140
 
144
141
    def _treeview_cursor_cb(self, *args):
145
142
        """Callback for when the treeview cursor changes."""