Changeset 8bf01e9375ab…
Parent 1096ecb3869d…
by
Changes to one file · Browse files at 8bf01e9375ab Showing diff from parent 1096ecb3869d Diff from another changeset...
@@ -169,7 +169,12 @@ url_ = pathitem.url()
reporoot = pathitem.parent().parent().rootpath()
- # TODO: add confirmation dialog
+ labels = [(QMessageBox.Yes, _('&Push')),
+ (QMessageBox.No, _('Cancel'))]
+ if not qtlib.QuestionMsgBox(_('Confirm Push to remote Repository'),
+ _('Push to remote repository ') + url_ + '?',
+ labels=labels, parent=self):
+ return
args = ['push', '-R', reporoot, url_]
cmd = cmdui.Dialog(args, parent=self)
what = _('Pushing to %s') % url.hidepassword(url_)
|
Loading...