76
self.comm.set_busy(self.window)
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)
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)
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)
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)
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)