src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9482
a2bc06a54d9d
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
792 ] 792 ]
793 if not names: 793 if not names:
794 EricMessageBox.information( 794 EricMessageBox.information(
795 self, 795 self,
796 self.tr("Commit"), 796 self.tr("Commit"),
797 self.tr("""There are no entries selected to be""" """ committed."""), 797 self.tr("""There are no entries selected to be committed."""),
798 ) 798 )
799 return 799 return
800 800
801 if Preferences.getVCS("AutoSaveFiles"): 801 if Preferences.getVCS("AutoSaveFiles"):
802 vm = ericApp().getObject("ViewManager") 802 vm = ericApp().getObject("ViewManager")
835 if not names: 835 if not names:
836 EricMessageBox.information( 836 EricMessageBox.information(
837 self, 837 self,
838 self.tr("Add"), 838 self.tr("Add"),
839 self.tr( 839 self.tr(
840 """There are no unversioned entries""" """ available/selected.""" 840 """There are no unversioned entries available/selected."""
841 ), 841 ),
842 ) 842 )
843 return 843 return
844 844
845 self.vcs.vcsAdd(names) 845 self.vcs.vcsAdd(names)
861 if not names: 861 if not names:
862 EricMessageBox.information( 862 EricMessageBox.information(
863 self, 863 self,
864 self.tr("Revert"), 864 self.tr("Revert"),
865 self.tr( 865 self.tr(
866 """There are no uncommitted changes""" """ available/selected.""" 866 """There are no uncommitted changes available/selected."""
867 ), 867 ),
868 ) 868 )
869 return 869 return
870 870
871 self.vcs.vcsRevert(names) 871 self.vcs.vcsRevert(names)
888 ] 888 ]
889 if not names: 889 if not names:
890 EricMessageBox.information( 890 EricMessageBox.information(
891 self, 891 self,
892 self.tr("Revert"), 892 self.tr("Revert"),
893 self.tr("""There are no missing entries""" """ available/selected."""), 893 self.tr("""There are no missing entries available/selected."""),
894 ) 894 )
895 return 895 return
896 896
897 self.vcs.vcsRevert(names) 897 self.vcs.vcsRevert(names)
898 self.on_refreshButton_clicked() 898 self.on_refreshButton_clicked()
911 if not names: 911 if not names:
912 EricMessageBox.information( 912 EricMessageBox.information(
913 self, 913 self,
914 self.tr("Differences"), 914 self.tr("Differences"),
915 self.tr( 915 self.tr(
916 """There are no uncommitted changes""" """ available/selected.""" 916 """There are no uncommitted changes available/selected."""
917 ), 917 ),
918 ) 918 )
919 return 919 return
920 920
921 if self.diff is None: 921 if self.diff is None:
935 if not names: 935 if not names:
936 EricMessageBox.information( 936 EricMessageBox.information(
937 self, 937 self,
938 self.tr("Side-by-Side Diff"), 938 self.tr("Side-by-Side Diff"),
939 self.tr( 939 self.tr(
940 """There are no uncommitted changes""" """ available/selected.""" 940 """There are no uncommitted changes available/selected."""
941 ), 941 ),
942 ) 942 )
943 return 943 return
944 elif len(names) > 1: 944 elif len(names) > 1:
945 EricMessageBox.information( 945 EricMessageBox.information(
964 ] 964 ]
965 if not names: 965 if not names:
966 EricMessageBox.information( 966 EricMessageBox.information(
967 self, 967 self,
968 self.tr("Lock"), 968 self.tr("Lock"),
969 self.tr("""There are no unlocked files""" """ available/selected."""), 969 self.tr("""There are no unlocked files available/selected."""),
970 ) 970 )
971 return 971 return
972 972
973 self.vcs.svnLock(names, parent=self) 973 self.vcs.svnLock(names, parent=self)
974 self.on_refreshButton_clicked() 974 self.on_refreshButton_clicked()
983 ] 983 ]
984 if not names: 984 if not names:
985 EricMessageBox.information( 985 EricMessageBox.information(
986 self, 986 self,
987 self.tr("Unlock"), 987 self.tr("Unlock"),
988 self.tr("""There are no locked files""" """ available/selected."""), 988 self.tr("""There are no locked files available/selected."""),
989 ) 989 )
990 return 990 return
991 991
992 self.vcs.svnUnlock(names, parent=self) 992 self.vcs.svnUnlock(names, parent=self)
993 self.on_refreshButton_clicked() 993 self.on_refreshButton_clicked()
1002 ] 1002 ]
1003 if not names: 1003 if not names:
1004 EricMessageBox.information( 1004 EricMessageBox.information(
1005 self, 1005 self,
1006 self.tr("Break Lock"), 1006 self.tr("Break Lock"),
1007 self.tr("""There are no locked files""" """ available/selected."""), 1007 self.tr("""There are no locked files available/selected."""),
1008 ) 1008 )
1009 return 1009 return
1010 1010
1011 self.vcs.svnUnlock(names, parent=self, breakIt=True) 1011 self.vcs.svnUnlock(names, parent=self, breakIt=True)
1012 self.on_refreshButton_clicked() 1012 self.on_refreshButton_clicked()
1021 ] 1021 ]
1022 if not names: 1022 if not names:
1023 EricMessageBox.information( 1023 EricMessageBox.information(
1024 self, 1024 self,
1025 self.tr("Steal Lock"), 1025 self.tr("Steal Lock"),
1026 self.tr("""There are no locked files""" """ available/selected."""), 1026 self.tr("""There are no locked files available/selected."""),
1027 ) 1027 )
1028 return 1028 return
1029 1029
1030 self.vcs.svnLock(names, parent=self, stealIt=True) 1030 self.vcs.svnLock(names, parent=self, stealIt=True)
1031 self.on_refreshButton_clicked() 1031 self.on_refreshButton_clicked()

eric ide

mercurial