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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-09-27 19:10:00 UTC
  • mto: (0.14.1 main)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060927191000-2b5382eda85d82e4
Fixed a context menu bug; set release date.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
from bzrlib import version_info
33
33
 
34
 
if version_info < (0, 9):
35
 
    # function deprecated after 0.9
36
 
    from bzrlib.delta import compare_trees
37
 
 
38
34
import bzrlib.errors as errors
39
35
from bzrlib.workingtree import WorkingTree
40
36
 
97
93
                                     _('You can perform this action only in a branch.'))
98
94
            self.close()
99
95
        else:
100
 
            from olive.backend.info import is_checkout
101
 
            if is_checkout(self.comm.get_path()):
 
96
            from bzrlib.branch import Branch
 
97
            branch = Branch.open_containing(self.comm.get_path())[0]
 
98
 
 
99
            if branch.get_bound_location() is not None:
102
100
                # we have a checkout, so the local commit checkbox must appear
103
101
                self.checkbutton_local.show()
104
102