/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: Jelmer Vernooij
  • Date: 2012-02-17 15:03:17 UTC
  • Revision ID: jelmer@samba.org-20120217150317-bz27z9fanucxel18
Avoid the use of Repository.get_ancestry().

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)