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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-01 16:16:31 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-20060801161631-ca1ac79e3726e307
Visual feedback when Olive is busy; follow bzr API changes; commit dialog update

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

    * olive/frontend/gtk/push.py: now the number of pushed revisions gets
      displayed (Fixed: #54698)
    * olive/backend/info.py: added is_checkout()
    * olive/frontend/gtk/commit.py: local commit checkbox shows up only if the
      current directory is a checkout
    * olive/backend/fileops.py: upgraded to new API (compare_trees deprecated)
    * many files: the cursor changes to a watch when performing time consuming
      operations (Fixed: #54015)

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        if revno == 0:
74
74
            revno = None
75
75
        
 
76
        self.comm.set_busy(self.window)
76
77
        try:
77
 
            self.comm.set_statusbar('Branching in progress, please wait...')
78
78
            init.branch(location, destination, revno)
79
 
            self.comm.clear_statusbar()
80
79
        except errors.NonExistingSource, errmsg:
81
80
            dialog.error_dialog('Non existing source: %s' % errmsg)
82
 
            self.comm.clear_statusbar()
 
81
            self.comm.set_busy(self.window, False)
83
82
            return
84
83
        except errors.TargetAlreadyExists, errmsg:
85
84
            dialog.error_dialog('Target already exists: %s' % errmsg)
86
 
            self.comm.clear_statusbar()
 
85
            self.comm.set_busy(self.window, False)
87
86
            return
88
87
        except errors.NonExistingParent, errmsg:
89
88
            dialog.error_dialog('Parent directory doesn\'t exist: %s' % errmsg)
90
 
            self.comm.clear_statusbar()
 
89
            self.comm.set_busy(self.window, False)
91
90
            return
92
91
        except errors.NonExistingRevision:
93
92
            dialog.error_dialog('The given revision doesn\'t exist.')
94
 
            self.comm.clear_statusbar()
 
93
            self.comm.set_busy(self.window, False)
95
94
            return
96
95
        except errors.NotBranchError, errmsg:
97
96
            dialog.error_dialog('Not a branch: %s' % errmsg)
98
 
            self.comm.clear_statusbar()
 
97
            self.comm.set_busy(self.window, False)
99
98
            return
100
99
        except:
101
100
            raise