70
70
commit = OliveCommit(self.gladefile, self.comm, self.dialog)
73
def on_menuitem_branch_missing_revisions_activate(self, widget):
74
""" Branch/Missing revisions menu handler. """
75
import olive.backend.update as update
77
self.comm.set_busy(self.comm.window_main)
80
ret = update.missing(self.comm.get_path())
81
except errors.NotBranchError:
82
self.dialog.error_dialog(_('Directory is not a branch'),
83
_('You can perform this action only in a branch.'))
84
except errors.ConnectionError:
85
self.dialog.error_dialog(_('Connection error'),
86
_('Cannot connect to remote location.\nPlease try again later.'))
87
except errors.NoLocationKnown:
88
self.dialog.error_dialog(_('Parent location is unknown'),
89
_('Cannot determine missing revisions if no parent location is known.'))
92
self.dialog.info_dialog(_('There are missing revisions'),
93
_('%d revision(s) missing.') % ret)
95
self.dialog.info_dialog(_('Local branch up to date'),
96
_('There are no missing revisions.'))
98
self.comm.set_busy(self.comm.window_main, False)
73
100
def on_menuitem_branch_pull_activate(self, widget):
74
101
""" Branch/Pull menu handler. """
75
102
import olive.backend.update as update