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

  • Committer: Jelmer Vernooij
  • Date: 2006-05-19 18:59:23 UTC
  • Revision ID: jelmer@samba.org-20060519185923-fa9110fd5448b4d6
Rework some of the parameters to DiffWindow.set_diff() to be 
more usable to other code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
    def show_diff(self, branch, revid, parentid):
38
38
        """Open a new window to show a diff between the given revisions."""
39
 
        window = DiffWindow(self)
40
 
        window.set_diff(branch, revid, parentid)
 
39
        window = DiffWindow()
 
40
        rev_tree = branch.repository.revision_tree(revid)
 
41
        parent_tree = branch.repository.revision_tree(parentid)
 
42
        description = revid + " - " + branch.nick
 
43
        window.set_diff(description, rev_tree, parent_tree)
41
44
        window.show()
42
45
 
43
46
    def _destroy_cb(self, widget):