14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
19
pygtk.require("2.0")
29
from bzrlib import version_info
31
28
import bzrlib.errors as errors
32
from bzrlib.workingtree import WorkingTree
34
30
from dialog import error_dialog
35
31
from olive import gladefile
74
70
""" Display the Push dialog. """
76
72
error_dialog(_('Directory is not a branch'),
77
_('You can perform this action only in a branch.'))
73
_('You can perform this action only in a branch.'))
80
76
if self.wt.branch.get_bound_location() is not None:
144
140
specific_files=specific_files)
145
141
except errors.NotBranchError:
146
142
error_dialog(_('Directory is not a branch'),
147
_('You can perform this action only in a branch.'))
143
_('You can perform this action only in a branch.'))
149
145
except errors.LocalRequiresBoundBranch:
150
146
error_dialog(_('Directory is not a checkout'),
151
_('You can perform local commit only on checkouts.'))
147
_('You can perform local commit only on checkouts.'))
153
149
except errors.PointlessCommit:
154
150
error_dialog(_('No changes to commit'),
155
_('Try force commit if you want to commit anyway.'))
151
_('Try force commit if you want to commit anyway.'))
157
153
except errors.ConflictsInTree:
158
154
error_dialog(_('Conflicts in tree'),
159
_('You need to resolve the conflicts before committing.'))
155
_('You need to resolve the conflicts before committing.'))
161
157
except errors.StrictCommitFailed:
162
158
error_dialog(_('Strict commit failed'),
163
_('There are unknown files in the working tree.\nPlease add or delete them.'))
159
_('There are unknown files in the working tree.\nPlease add or delete them.'))
165
161
except errors.BoundBranchOutOfDate, errmsg:
166
162
error_dialog(_('Bound branch is out of date'),
169
165
except errors.BzrError, msg:
170
166
error_dialog(_('Unknown bzr error'), str(msg))