795 ] |
795 ] |
796 if not names: |
796 if not names: |
797 EricMessageBox.information( |
797 EricMessageBox.information( |
798 self, |
798 self, |
799 self.tr("Forget Missing"), |
799 self.tr("Forget Missing"), |
800 self.tr("""There are no missing entries""" """ available/selected."""), |
800 self.tr("""There are no missing entries available/selected."""), |
801 ) |
801 ) |
802 return |
802 return |
803 |
803 |
804 self.vcs.vcsRemove(names, stageOnly=True) |
804 self.vcs.vcsRemove(names, stageOnly=True) |
805 self.on_refreshButton_clicked() |
805 self.on_refreshButton_clicked() |
843 ] |
843 ] |
844 if not names: |
844 if not names: |
845 EricMessageBox.information( |
845 EricMessageBox.information( |
846 self, |
846 self, |
847 self.tr("Restore Missing"), |
847 self.tr("Restore Missing"), |
848 self.tr("""There are no missing entries""" """ available/selected."""), |
848 self.tr("""There are no missing entries available/selected."""), |
849 ) |
849 ) |
850 return |
850 return |
851 |
851 |
852 self.vcs.vcsRevert(names) |
852 self.vcs.vcsRevert(names) |
853 self.on_refreshButton_clicked() |
853 self.on_refreshButton_clicked() |
879 if not namesW and not namesS: |
879 if not namesW and not namesS: |
880 EricMessageBox.information( |
880 EricMessageBox.information( |
881 self, |
881 self, |
882 self.tr("Differences"), |
882 self.tr("Differences"), |
883 self.tr( |
883 self.tr( |
884 """There are no uncommitted changes""" """ available/selected.""" |
884 """There are no uncommitted changes available/selected.""" |
885 ), |
885 ), |
886 ) |
886 ) |
887 return |
887 return |
888 |
888 |
889 diffMode = "work2stage2repo" |
889 diffMode = "work2stage2repo" |
1253 else self.tr("Revert hunk") |
1253 else self.tr("Revert hunk") |
1254 ) |
1254 ) |
1255 res = EricMessageBox.yesNo( |
1255 res = EricMessageBox.yesNo( |
1256 self, |
1256 self, |
1257 title, |
1257 title, |
1258 self.tr("""Are you sure you want to revert the selected""" """ changes?"""), |
1258 self.tr("""Are you sure you want to revert the selected changes?"""), |
1259 ) |
1259 ) |
1260 if res: |
1260 if res: |
1261 if cursor.hasSelection(): |
1261 if cursor.hasSelection(): |
1262 patch = self.lDiffParser.createLinesPatch( |
1262 patch = self.lDiffParser.createLinesPatch( |
1263 startIndex, endIndex, reverse=True |
1263 startIndex, endIndex, reverse=True |