Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

reporegistry: add confirmation dialog for push

Changeset 8bf01e9375ab

Parent 1096ecb3869d

by André Sintzoff

Changes to one file · Browse files at 8bf01e9375ab Showing diff from parent 1096ecb3869d Diff from another changeset...

 
169
170
171
172
 
 
 
 
 
 
173
174
175
 
169
170
171
 
172
173
174
175
176
177
178
179
180
@@ -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_)