493
495
self.wt.commit(message,
494
allow_pointless=False,
495
strict=self._check_strict.get_active(),
497
specific_files=specific_files)
498
except errors.NotBranchError:
499
error_dialog(_('Directory is not a branch'),
500
_('You can perform this action only in a branch.'))
502
except errors.LocalRequiresBoundBranch:
503
error_dialog(_('Directory is not a checkout'),
504
_('You can perform local commit only on checkouts.'))
506
except errors.ConflictsInTree:
507
error_dialog(_('Conflicts in tree'),
508
_('You need to resolve the conflicts before committing.'))
510
except errors.StrictCommitFailed:
511
error_dialog(_('Strict commit failed'),
512
_('There are unknown files in the working tree.\nPlease add or delete them.'))
514
except errors.BoundBranchOutOfDate, errmsg:
515
error_dialog(_('Bound branch is out of date'),
496
allow_pointless=False,
497
strict=self._check_strict.get_active(),
499
specific_files=specific_files)
518
500
except errors.PointlessCommit:
519
501
response = question_dialog(_('Commit with no changes?'),
520
502
_('There are no changes in the working tree.'))
521
503
if response == gtk.RESPONSE_YES:
522
# Try to commit again
524
self.wt.commit(message,
525
allow_pointless=True,
526
strict=self._check_strict.get_active(),
528
specific_files=specific_files)
529
except errors.BzrError, msg:
530
error_dialog(_('Unknown bzr error'), str(msg))
532
except Exception, msg:
533
error_dialog(_('Unknown error'), str(msg))
535
except errors.BzrError, msg:
536
error_dialog(_('Unknown bzr error'), str(msg))
538
except Exception, msg:
539
error_dialog(_('Unknown error'), str(msg))
504
self.wt.commit(message,
505
allow_pointless=True,
506
strict=self._check_strict.get_active(),
508
specific_files=specific_files)
542
509
self.response(gtk.RESPONSE_OK)
544
511
def _pending_merges(self, wt):