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

  • Committer: Jelmer Vernooij
  • Date: 2006-08-13 01:29:57 UTC
  • Revision ID: jelmer@samba.org-20060813012957-30ee37d21f01d70f
Update for bzr 0.10.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import gobject
20
20
import gtk
21
21
import pango
22
 
from bzrlib.delta import compare_trees
 
22
 
 
23
import bzrlib
 
24
if bzrlib.version_info < (0, 9):
 
25
    # function deprecated in 0.9
 
26
    from bzrlib.delta import compare_trees
23
27
 
24
28
class GCommitDialog(gtk.Dialog):
25
29
    """ Commit Dialog """
31
35
 
32
36
        self.old_tree = tree.branch.repository.revision_tree(tree.branch.last_revision())
33
37
        self.pending_merges = tree.pending_merges()
34
 
        self.delta = compare_trees(self.old_tree, tree)
 
38
        if bzrlib.version_info < (0, 9):
 
39
            self.delta = compare_trees(self.old_tree, tree)
 
40
        else:
 
41
            self.delta = tree.changes_from(self.old_tree)
35
42
 
36
43
        self._create()
37
44