/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-30 11:25:53 UTC
  • Revision ID: jelmer@samba.org-20060830112553-04312d12ed56cb46
PrepareĀ forĀ 0.10.0

Show diffs side-by-side

added added

removed removed

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