248 |
248 |
249 self.__diffAct = self.__actionsMenu.addAction( |
249 self.__diffAct = self.__actionsMenu.addAction( |
250 EricPixmapCache.getIcon("vcsDiff"), self.tr("Differences"), self.__diff |
250 EricPixmapCache.getIcon("vcsDiff"), self.tr("Differences"), self.__diff |
251 ) |
251 ) |
252 self.__diffAct.setToolTip( |
252 self.__diffAct.setToolTip( |
253 self.tr( |
253 self.tr("Shows the differences of the selected entry in a separate dialog") |
254 "Shows the differences of the selected entry in a" " separate dialog" |
|
255 ) |
|
256 ) |
254 ) |
257 self.__sbsDiffAct = self.__actionsMenu.addAction( |
255 self.__sbsDiffAct = self.__actionsMenu.addAction( |
258 EricPixmapCache.getIcon("vcsSbsDiff"), |
256 EricPixmapCache.getIcon("vcsSbsDiff"), |
259 self.tr("Differences Side-By-Side"), |
257 self.tr("Differences Side-By-Side"), |
260 self.__sbsDiff, |
258 self.__sbsDiff, |
767 ) |
763 ) |
768 if not names: |
764 if not names: |
769 EricMessageBox.information( |
765 EricMessageBox.information( |
770 self, |
766 self, |
771 self.tr("Differences"), |
767 self.tr("Differences"), |
772 self.tr( |
768 self.tr("""There are no uncommitted changes available/selected."""), |
773 """There are no uncommitted changes available/selected.""" |
|
774 ), |
|
775 ) |
769 ) |
776 return |
770 return |
777 |
771 |
778 vcs = self.__project.getVcs() |
772 vcs = self.__project.getVcs() |
779 vcs and vcs.vcsDiff(names) |
773 vcs and vcs.vcsDiff(names) |
913 ] |
903 ] |
914 if not names: |
904 if not names: |
915 EricMessageBox.information( |
905 EricMessageBox.information( |
916 self, |
906 self, |
917 self.tr("Conflict Resolved"), |
907 self.tr("Conflict Resolved"), |
918 self.tr( |
908 self.tr("""There are no conflicting entries available/selected."""), |
919 """There are no conflicting entries available/selected.""" |
|
920 ), |
|
921 ) |
909 ) |
922 return |
910 return |
923 |
911 |
924 vcs = self.__project.getVcs() |
912 vcs = self.__project.getVcs() |
925 vcs and vcs.vcsResolved(names) |
913 vcs and vcs.vcsResolved(names) |