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

branch
eric7
changeset 9573
9960d19d66b5
parent 9482
a2bc06a54d9d
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
649 ] 649 ]
650 if not names: 650 if not names:
651 EricMessageBox.information( 651 EricMessageBox.information(
652 self, 652 self,
653 self.tr("Commit"), 653 self.tr("Commit"),
654 self.tr("""There are no entries selected to be""" """ committed."""), 654 self.tr("""There are no entries selected to be committed."""),
655 ) 655 )
656 return 656 return
657 657
658 if Preferences.getVCS("AutoSaveFiles"): 658 if Preferences.getVCS("AutoSaveFiles"):
659 vm = ericApp().getObject("ViewManager") 659 vm = ericApp().getObject("ViewManager")
692 if not names: 692 if not names:
693 EricMessageBox.information( 693 EricMessageBox.information(
694 self, 694 self,
695 self.tr("Add"), 695 self.tr("Add"),
696 self.tr( 696 self.tr(
697 """There are no unversioned entries""" """ available/selected.""" 697 """There are no unversioned entries available/selected."""
698 ), 698 ),
699 ) 699 )
700 return 700 return
701 701
702 self.vcs.vcsAdd(names) 702 self.vcs.vcsAdd(names)
718 if not names: 718 if not names:
719 EricMessageBox.information( 719 EricMessageBox.information(
720 self, 720 self,
721 self.tr("Revert"), 721 self.tr("Revert"),
722 self.tr( 722 self.tr(
723 """There are no uncommitted changes""" """ available/selected.""" 723 """There are no uncommitted changes available/selected."""
724 ), 724 ),
725 ) 725 )
726 return 726 return
727 727
728 self.vcs.vcsRevert(names) 728 self.vcs.vcsRevert(names)
745 ] 745 ]
746 if not names: 746 if not names:
747 EricMessageBox.information( 747 EricMessageBox.information(
748 self, 748 self,
749 self.tr("Restore Missing"), 749 self.tr("Restore Missing"),
750 self.tr("""There are no missing entries""" """ available/selected."""), 750 self.tr("""There are no missing entries available/selected."""),
751 ) 751 )
752 return 752 return
753 753
754 self.vcs.vcsRevert(names) 754 self.vcs.vcsRevert(names)
755 self.on_refreshButton_clicked() 755 self.on_refreshButton_clicked()
768 if not names: 768 if not names:
769 EricMessageBox.information( 769 EricMessageBox.information(
770 self, 770 self,
771 self.tr("Differences"), 771 self.tr("Differences"),
772 self.tr( 772 self.tr(
773 """There are no uncommitted changes""" """ available/selected.""" 773 """There are no uncommitted changes available/selected."""
774 ), 774 ),
775 ) 775 )
776 return 776 return
777 777
778 if self.diff is None: 778 if self.diff is None:
792 if not names: 792 if not names:
793 EricMessageBox.information( 793 EricMessageBox.information(
794 self, 794 self,
795 self.tr("Side-by-Side Diff"), 795 self.tr("Side-by-Side Diff"),
796 self.tr( 796 self.tr(
797 """There are no uncommitted changes""" """ available/selected.""" 797 """There are no uncommitted changes available/selected."""
798 ), 798 ),
799 ) 799 )
800 return 800 return
801 elif len(names) > 1: 801 elif len(names) > 1:
802 EricMessageBox.information( 802 EricMessageBox.information(
821 ] 821 ]
822 if not names: 822 if not names:
823 EricMessageBox.information( 823 EricMessageBox.information(
824 self, 824 self,
825 self.tr("Lock"), 825 self.tr("Lock"),
826 self.tr("""There are no unlocked files""" """ available/selected."""), 826 self.tr("""There are no unlocked files available/selected."""),
827 ) 827 )
828 return 828 return
829 829
830 self.vcs.svnLock(names, parent=self) 830 self.vcs.svnLock(names, parent=self)
831 self.on_refreshButton_clicked() 831 self.on_refreshButton_clicked()
840 ] 840 ]
841 if not names: 841 if not names:
842 EricMessageBox.information( 842 EricMessageBox.information(
843 self, 843 self,
844 self.tr("Unlock"), 844 self.tr("Unlock"),
845 self.tr("""There are no locked files""" """ available/selected."""), 845 self.tr("""There are no locked files available/selected."""),
846 ) 846 )
847 return 847 return
848 848
849 self.vcs.svnUnlock(names, parent=self) 849 self.vcs.svnUnlock(names, parent=self)
850 self.on_refreshButton_clicked() 850 self.on_refreshButton_clicked()
859 ] 859 ]
860 if not names: 860 if not names:
861 EricMessageBox.information( 861 EricMessageBox.information(
862 self, 862 self,
863 self.tr("Break Lock"), 863 self.tr("Break Lock"),
864 self.tr("""There are no locked files""" """ available/selected."""), 864 self.tr("""There are no locked files available/selected."""),
865 ) 865 )
866 return 866 return
867 867
868 self.vcs.svnUnlock(names, parent=self, breakIt=True) 868 self.vcs.svnUnlock(names, parent=self, breakIt=True)
869 self.on_refreshButton_clicked() 869 self.on_refreshButton_clicked()
878 ] 878 ]
879 if not names: 879 if not names:
880 EricMessageBox.information( 880 EricMessageBox.information(
881 self, 881 self,
882 self.tr("Steal Lock"), 882 self.tr("Steal Lock"),
883 self.tr("""There are no locked files""" """ available/selected."""), 883 self.tr("""There are no locked files available/selected."""),
884 ) 884 )
885 return 885 return
886 886
887 self.vcs.svnLock(names, parent=self, stealIt=True) 887 self.vcs.svnLock(names, parent=self, stealIt=True)
888 self.on_refreshButton_clicked() 888 self.on_refreshButton_clicked()

eric ide

mercurial