src/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9482
a2bc06a54d9d
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
524 if not names: 524 if not names:
525 EricMessageBox.information( 525 EricMessageBox.information(
526 self, 526 self,
527 self.tr("Commit"), 527 self.tr("Commit"),
528 self.tr( 528 self.tr(
529 """There are no entries selected to be""" """ committed.""" 529 """There are no entries selected to be committed."""
530 ), 530 ),
531 ) 531 )
532 return 532 return
533 533
534 if Preferences.getVCS("AutoSaveFiles"): 534 if Preferences.getVCS("AutoSaveFiles"):
568 if not names: 568 if not names:
569 EricMessageBox.information( 569 EricMessageBox.information(
570 self, 570 self,
571 self.tr("Add"), 571 self.tr("Add"),
572 self.tr( 572 self.tr(
573 """There are no unversioned entries""" """ available/selected.""" 573 """There are no unversioned entries available/selected."""
574 ), 574 ),
575 ) 575 )
576 return 576 return
577 577
578 self.vcs.vcsAdd(names) 578 self.vcs.vcsAdd(names)
596 if not names: 596 if not names:
597 EricMessageBox.information( 597 EricMessageBox.information(
598 self, 598 self,
599 self.tr("Add"), 599 self.tr("Add"),
600 self.tr( 600 self.tr(
601 """There are no unversioned entries""" """ available/selected.""" 601 """There are no unversioned entries available/selected."""
602 ), 602 ),
603 ) 603 )
604 return 604 return
605 605
606 self.vcs.getExtensionObject("largefiles").hgAdd(names, mode) 606 self.vcs.getExtensionObject("largefiles").hgAdd(names, mode)
621 ] 621 ]
622 if not names: 622 if not names:
623 EricMessageBox.information( 623 EricMessageBox.information(
624 self, 624 self,
625 self.tr("Forget Missing"), 625 self.tr("Forget Missing"),
626 self.tr("""There are no missing entries""" """ available/selected."""), 626 self.tr("""There are no missing entries available/selected."""),
627 ) 627 )
628 return 628 return
629 629
630 self.vcs.vcsForget(names) 630 self.vcs.vcsForget(names)
631 self.on_refreshButton_clicked() 631 self.on_refreshButton_clicked()
641 if not names: 641 if not names:
642 EricMessageBox.information( 642 EricMessageBox.information(
643 self, 643 self,
644 self.tr("Revert"), 644 self.tr("Revert"),
645 self.tr( 645 self.tr(
646 """There are no uncommitted changes""" """ available/selected.""" 646 """There are no uncommitted changes available/selected."""
647 ), 647 ),
648 ) 648 )
649 return 649 return
650 650
651 self.vcs.vcsRevert(names) 651 self.vcs.vcsRevert(names)
668 ] 668 ]
669 if not names: 669 if not names:
670 EricMessageBox.information( 670 EricMessageBox.information(
671 self, 671 self,
672 self.tr("Restore Missing"), 672 self.tr("Restore Missing"),
673 self.tr("""There are no missing entries""" """ available/selected."""), 673 self.tr("""There are no missing entries available/selected."""),
674 ) 674 )
675 return 675 return
676 676
677 self.vcs.vcsRevert(names) 677 self.vcs.vcsRevert(names)
678 self.on_refreshButton_clicked() 678 self.on_refreshButton_clicked()
691 if not names: 691 if not names:
692 EricMessageBox.information( 692 EricMessageBox.information(
693 self, 693 self,
694 self.tr("Differences"), 694 self.tr("Differences"),
695 self.tr( 695 self.tr(
696 """There are no uncommitted changes""" """ available/selected.""" 696 """There are no uncommitted changes available/selected."""
697 ), 697 ),
698 ) 698 )
699 return 699 return
700 700
701 if self.diff is None: 701 if self.diff is None:
714 if not names: 714 if not names:
715 EricMessageBox.information( 715 EricMessageBox.information(
716 self, 716 self,
717 self.tr("Differences Side-By-Side"), 717 self.tr("Differences Side-By-Side"),
718 self.tr( 718 self.tr(
719 """There are no uncommitted changes""" """ available/selected.""" 719 """There are no uncommitted changes available/selected."""
720 ), 720 ),
721 ) 721 )
722 return 722 return
723 elif len(names) > 1: 723 elif len(names) > 1:
724 EricMessageBox.information( 724 EricMessageBox.information(

eric ide

mercurial