/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 nautilus-bzr.py

  • Committer: Jelmer Vernooij
  • Date: 2006-05-19 21:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 80.
  • Revision ID: jelmer@samba.org-20060519214854-54c8295dcc9a7f97
Implement 'Diff' menu item

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
        from bzrlib.plugins.gtk.viz.diffwin import DiffWindow
74
74
        window = DiffWindow()
75
 
        window.set_diff(tree.branch, tree, tree.branch.revision_tree())
 
75
        window.set_diff("Working Tree", tree, tree.branch.repository.revision_tree(tree.branch.last_revision()))
76
76
        window.show()
77
77
 
78
78
        return
208
208
                    item.connect('activate', self.log_cb, vfs_file)
209
209
                    items.append(item)
210
210
 
 
211
                    # FIXME: Don't show if there are no changes
 
212
                    # to the current file...
211
213
                    item = nautilus.MenuItem('BzrNautilus::diff',
212
214
                                     'Diff',
213
215
                                     'Show differences')