/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 olive/frontend/gtk/diff.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-03 14:32:03 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060803143203-26d8f3067e646294
Implemented Status window; some code cleanups.

2006-08-03  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/status.py: Status window implemented
    * olive.glade: Status window designed and Branch/status menu added

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
import bzrlib
45
45
 
46
 
if bzrlib.version_info[1] < 9:
 
46
if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
47
47
    # function deprecated after 0.9
48
48
    from bzrlib.delta import compare_trees
49
49
 
140
140
    def _init_diff(self):
141
141
        """ Generate initial diff. """
142
142
        self.model.clear()
143
 
        if bzrlib.version_info[1] < 9:
 
143
        if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
144
144
            delta = compare_trees(self.old_tree, self.wt)
145
145
        else:
146
146
            delta = self.wt.changes_from(self.old_tree)