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

  • Committer: Curtis Hovey
  • Date: 2012-02-27 21:07:38 UTC
  • mto: (776.3.1 gpush)
  • mto: This revision was merged to the branch mainline in revision 779.
  • Revision ID: sinzui.is@verizon.net-20120227210738-f5vb56xm2k2ii19j
Added show_user_warning implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
        else:
479
479
            parent_id = parents[0]
480
480
 
481
 
        if revision is not None:
482
 
            self.show_diff(revision.revision_id, parent_id)
483
 
        else:
484
 
            self.show_diff(NULL_REVISION)
 
481
        self.show_diff(revision.revision_id, parent_id)
485
482
        self.treeview.grab_focus()
486
483
 
487
484
    def _back_clicked_cb(self, *args):
657
654
            return width, height
658
655
        return None
659
656
 
660
 
    def show_diff(self, revid, parentid=NULL_REVISION):
 
657
    def show_diff(self, revid=None, parentid=NULL_REVISION):
661
658
        """Open a new window to show a diff between the given revisions."""
662
659
        from bzrlib.plugins.gtk.diff import DiffWindow
663
660
        window = DiffWindow(parent=self)