/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 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:
 
1
#!/usr/bin/python
1
2
# -*- coding: UTF-8 -*-
2
3
"""Application object.
3
4
 
35
36
 
36
37
    def show_diff(self, branch, revid, parentid):
37
38
        """Open a new window to show a diff between the given revisions."""
38
 
        window = DiffWindow()
39
 
        rev_tree = branch.repository.revision_tree(revid)
40
 
        parent_tree = branch.repository.revision_tree(parentid)
41
 
        description = revid + " - " + branch.nick
42
 
        window.set_diff(description, rev_tree, parent_tree)
 
39
        window = DiffWindow(self)
 
40
        window.set_diff(branch, revid, parentid)
43
41
        window.show()
44
42
 
45
43
    def _destroy_cb(self, widget):