eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

branch
eric7
changeset 9153
506e35e424d5
parent 9152
8a68afaf1ba2
equal deleted inserted replaced
9152:8a68afaf1ba2 9153:506e35e424d5
2694 if fpath.exists(): 2694 if fpath.exists():
2695 res = EricMessageBox.yesNo( 2695 res = EricMessageBox.yesNo(
2696 self, 2696 self,
2697 self.tr("Save Diff"), 2697 self.tr("Save Diff"),
2698 self.tr("<p>The patch file <b>{0}</b> already exists." 2698 self.tr("<p>The patch file <b>{0}</b> already exists."
2699 " Overwrite it?</p>").format(str(fpath)), 2699 " Overwrite it?</p>").format(fpath),
2700 icon=EricMessageBox.Warning) 2700 icon=EricMessageBox.Warning)
2701 if not res: 2701 if not res:
2702 return 2702 return
2703 2703
2704 eol = ericApp().getObject("Project").getEolString() 2704 eol = ericApp().getObject("Project").getEolString()
2709 EricMessageBox.critical( 2709 EricMessageBox.critical(
2710 self, self.tr('Save Diff'), 2710 self, self.tr('Save Diff'),
2711 self.tr( 2711 self.tr(
2712 '<p>The patch file <b>{0}</b> could not be saved.' 2712 '<p>The patch file <b>{0}</b> could not be saved.'
2713 '<br>Reason: {1}</p>') 2713 '<br>Reason: {1}</p>')
2714 .format(str(fpath), str(why))) 2714 .format(fpath, str(why)))
2715 2715
2716 @pyqtSlot(str) 2716 @pyqtSlot(str)
2717 def on_sbsSelectLabel_linkActivated(self, link): 2717 def on_sbsSelectLabel_linkActivated(self, link):
2718 """ 2718 """
2719 Private slot to handle selection of a side-by-side link. 2719 Private slot to handle selection of a side-by-side link.

eric ide

mercurial