/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: Scott Scriven
  • Date: 2008-07-10 07:33:13 UTC
  • mto: This revision was merged to the branch mainline in revision 549.
  • Revision ID: ubuntu@toykeeper.net-20080710073313-cmgny6sfojwby970
Fixed DiffWidget so more than one call to set_diff() will work.
Removed workaround from vis's diff panel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
 
545
545
        rev_tree    = self.branch.repository.revision_tree(revision.revision_id)
546
546
        parent_tree = self.branch.repository.revision_tree(parent_id)
547
 
        # FIXME: for some reason, an existing DiffWidget refuses to show 
548
 
        # diffs, but a new one works fine
549
 
        self.bottom_hpaned.remove(self.diff)
550
 
        from bzrlib.plugins.gtk.diff import DiffWidget
551
 
        self.diff = DiffWidget()
552
 
        self.bottom_hpaned.pack2(self.diff)
553
 
        # end FIXME; below is fine
 
547
 
554
548
        self.diff.set_diff(rev_tree, parent_tree)
555
 
        self.diff.diff_view.show_diff(None) # show all changes
556
549
        self.diff.show_all()