Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable sync: confirm before pushing to remote repository

Changeset 01c0dfa8afb7

Parent d2fe4bad92bb

by Yuya Nishihara

Changes to one file · Browse files at 01c0dfa8afb7 Showing diff from parent d2fe4bad92bb Diff from another changeset...

 
737
738
739
 
 
 
 
 
 
 
 
740
741
742
 
737
738
739
740
741
742
743
744
745
746
747
748
749
750
@@ -737,6 +737,14 @@
  self.run(['--repository', self.repo.root, 'p4pending', '--verbose'], ())     def pushclicked(self): + if not hg.islocal(self.currentUrl(False)): + r = qtlib.QuestionMsgBox(_('Confirm Push to remote Repository'), + _('Push to remote repository\n%s\n?') + % self.currentUrl(True)) + if not r: + self.showMessage.emit(_('Push aborted.')) + return +   self.showMessage.emit(_('Pushing...'))   def finished(ret, output):   if ret == 0: