Plugins/VcsPlugins/vcsMercurial/QueuesExtension/ProjectHelper.py

changeset 1061
3e21869872e3
parent 1053
c54aa980ea8e
child 1066
a3dd41fd9ea8
equal deleted inserted replaced
1059:700df567f70b 1061:3e21869872e3
662 662
663 return menu 663 return menu
664 664
665 def __hgQueueNewPatch(self): 665 def __hgQueueNewPatch(self):
666 """ 666 """
667 Private slot used to create a new named patch. 667 Private slot used to create a new named patch.
668 """ 668 """
669 self.vcs.getExtensionObject("mq")\ 669 self.vcs.getExtensionObject("mq")\
670 .hgQueueNewPatch(self.project.getProjectPath()) 670 .hgQueueNewPatch(self.project.getProjectPath())
671 671
672 def __hgQueueRefreshPatch(self): 672 def __hgQueueRefreshPatch(self):
673 """ 673 """
674 Private slot used to refresh the current patch. 674 Private slot used to refresh the current patch.
675 """ 675 """
676 self.vcs.getExtensionObject("mq")\ 676 self.vcs.getExtensionObject("mq")\
677 .hgQueueRefreshPatch(self.project.getProjectPath()) 677 .hgQueueRefreshPatch(self.project.getProjectPath())
678 678
679 def __hgQueueRefreshPatchMessage(self): 679 def __hgQueueRefreshPatchMessage(self):
680 """ 680 """
681 Private slot used to refresh the current patch and it's commit message. 681 Private slot used to refresh the current patch and it's commit message.
682 """ 682 """
683 self.vcs.getExtensionObject("mq")\ 683 self.vcs.getExtensionObject("mq")\
684 .hgQueueRefreshPatch(self.project.getProjectPath(), editMessage=True) 684 .hgQueueRefreshPatch(self.project.getProjectPath(), editMessage=True)
685 685
686 def __hgQueueShowPatch(self): 686 def __hgQueueShowPatch(self):
687 """ 687 """
688 Private slot used to show the contents of the current patch. 688 Private slot used to show the contents of the current patch.
689 """ 689 """
690 self.vcs.getExtensionObject("mq")\ 690 self.vcs.getExtensionObject("mq")\
691 .hgQueueShowPatch(self.project.getProjectPath()) 691 .hgQueueShowPatch(self.project.getProjectPath())
692 692
693 def __hgQueueShowHeader(self): 693 def __hgQueueShowHeader(self):
694 """ 694 """
695 Private slot used to show the commit message of the current patch. 695 Private slot used to show the commit message of the current patch.
696 """ 696 """
697 self.vcs.getExtensionObject("mq")\ 697 self.vcs.getExtensionObject("mq")\
698 .hgQueueShowHeader(self.project.getProjectPath()) 698 .hgQueueShowHeader(self.project.getProjectPath())
699 699
700 def __hgQueuePushPatch(self): 700 def __hgQueuePushPatch(self):
701 """ 701 """
702 Private slot used to push the next patch onto the stack. 702 Private slot used to push the next patch onto the stack.
703 """ 703 """
704 self.vcs.getExtensionObject("mq")\ 704 self.vcs.getExtensionObject("mq")\
705 .hgQueuePushPopPatches(self.project.getProjectPath(), 705 .hgQueuePushPopPatches(self.project.getProjectPath(),
706 operation=Queues.PUSH, all=False, named=False) 706 operation=Queues.PUSH, all=False, named=False)
707 707
708 def __hgQueuePushPatchForced(self): 708 def __hgQueuePushPatchForced(self):
709 """ 709 """
710 Private slot used to push the next patch onto the stack on top 710 Private slot used to push the next patch onto the stack on top
711 of local changes. 711 of local changes.
712 """ 712 """
713 self.vcs.getExtensionObject("mq")\ 713 self.vcs.getExtensionObject("mq")\
714 .hgQueuePushPopPatches(self.project.getProjectPath(), 714 .hgQueuePushPopPatches(self.project.getProjectPath(),
715 operation=Queues.PUSH, all=False, named=False, force=True) 715 operation=Queues.PUSH, all=False, named=False, force=True)
716 716
717 def __hgQueuePushAllPatches(self): 717 def __hgQueuePushAllPatches(self):
718 """ 718 """
719 Private slot used to push all patches onto the stack. 719 Private slot used to push all patches onto the stack.
720 """ 720 """
721 self.vcs.getExtensionObject("mq")\ 721 self.vcs.getExtensionObject("mq")\
722 .hgQueuePushPopPatches(self.project.getProjectPath(), 722 .hgQueuePushPopPatches(self.project.getProjectPath(),
723 operation=Queues.PUSH, all=True, named=False) 723 operation=Queues.PUSH, all=True, named=False)
724 724
725 def __hgQueuePushAllPatchesForced(self): 725 def __hgQueuePushAllPatchesForced(self):
726 """ 726 """
727 Private slot used to push all patches onto the stack on top 727 Private slot used to push all patches onto the stack on top
728 of local changes. 728 of local changes.
729 """ 729 """
730 self.vcs.getExtensionObject("mq")\ 730 self.vcs.getExtensionObject("mq")\
731 .hgQueuePushPopPatches(self.project.getProjectPath(), 731 .hgQueuePushPopPatches(self.project.getProjectPath(),
732 operation=Queues.PUSH, all=True, named=False, force=True) 732 operation=Queues.PUSH, all=True, named=False, force=True)
733 733
734 def __hgQueuePushPatches(self): 734 def __hgQueuePushPatches(self):
735 """ 735 """
736 Private slot used to push patches onto the stack until a named 736 Private slot used to push patches onto the stack until a named
737 one is at the top. 737 one is at the top.
738 """ 738 """
739 self.vcs.getExtensionObject("mq")\ 739 self.vcs.getExtensionObject("mq")\
740 .hgQueuePushPopPatches(self.project.getProjectPath(), 740 .hgQueuePushPopPatches(self.project.getProjectPath(),
741 operation=Queues.PUSH, all=False, named=True) 741 operation=Queues.PUSH, all=False, named=True)
742 742
743 def __hgQueuePushPatchesForced(self): 743 def __hgQueuePushPatchesForced(self):
744 """ 744 """
745 Private slot used to push patches onto the stack until a named 745 Private slot used to push patches onto the stack until a named
746 one is at the top on top of local changes. 746 one is at the top on top of local changes.
747 """ 747 """
748 self.vcs.getExtensionObject("mq")\ 748 self.vcs.getExtensionObject("mq")\
749 .hgQueuePushPopPatches(self.project.getProjectPath(), 749 .hgQueuePushPopPatches(self.project.getProjectPath(),
750 operation=Queues.PUSH, all=False, named=True, force=True) 750 operation=Queues.PUSH, all=False, named=True, force=True)
751 751
752 def __hgQueuePopPatch(self): 752 def __hgQueuePopPatch(self):
753 """ 753 """
754 Private slot used to pop the current patch off the stack. 754 Private slot used to pop the current patch off the stack.
755 """ 755 """
756 self.vcs.getExtensionObject("mq")\ 756 self.vcs.getExtensionObject("mq")\
757 .hgQueuePushPopPatches(self.project.getProjectPath(), 757 .hgQueuePushPopPatches(self.project.getProjectPath(),
758 operation=Queues.POP, all=False, named=False) 758 operation=Queues.POP, all=False, named=False)
759 759
760 def __hgQueuePopPatchForced(self): 760 def __hgQueuePopPatchForced(self):
761 """ 761 """
762 Private slot used to pop the current patch off the stack forgetting 762 Private slot used to pop the current patch off the stack forgetting
763 any local changes to patched files. 763 any local changes to patched files.
764 """ 764 """
765 self.vcs.getExtensionObject("mq")\ 765 self.vcs.getExtensionObject("mq")\
766 .hgQueuePushPopPatches(self.project.getProjectPath(), 766 .hgQueuePushPopPatches(self.project.getProjectPath(),
767 operation=Queues.POP, all=False, named=False, force=True) 767 operation=Queues.POP, all=False, named=False, force=True)
768 768
769 def __hgQueuePopAllPatches(self): 769 def __hgQueuePopAllPatches(self):
770 """ 770 """
771 Private slot used to pop all patches off the stack. 771 Private slot used to pop all patches off the stack.
772 """ 772 """
773 self.vcs.getExtensionObject("mq")\ 773 self.vcs.getExtensionObject("mq")\
774 .hgQueuePushPopPatches(self.project.getProjectPath(), 774 .hgQueuePushPopPatches(self.project.getProjectPath(),
775 operation=Queues.POP, all=True, named=False) 775 operation=Queues.POP, all=True, named=False)
776 776
777 def __hgQueuePopAllPatchesForced(self): 777 def __hgQueuePopAllPatchesForced(self):
778 """ 778 """
779 Private slot used to pop all patches off the stack forgetting 779 Private slot used to pop all patches off the stack forgetting
780 any local changes to patched files. 780 any local changes to patched files.
781 """ 781 """
782 self.vcs.getExtensionObject("mq")\ 782 self.vcs.getExtensionObject("mq")\
783 .hgQueuePushPopPatches(self.project.getProjectPath(), 783 .hgQueuePushPopPatches(self.project.getProjectPath(),
784 operation=Queues.POP, all=True, named=False, force=True) 784 operation=Queues.POP, all=True, named=False, force=True)
785 785
786 def __hgQueuePopPatches(self): 786 def __hgQueuePopPatches(self):
787 """ 787 """
788 Private slot used to pop patches off the stack until a named 788 Private slot used to pop patches off the stack until a named
789 one is at the top. 789 one is at the top.
790 """ 790 """
791 self.vcs.getExtensionObject("mq")\ 791 self.vcs.getExtensionObject("mq")\
792 .hgQueuePushPopPatches(self.project.getProjectPath(), 792 .hgQueuePushPopPatches(self.project.getProjectPath(),
793 operation=Queues.POP, all=False, named=True) 793 operation=Queues.POP, all=False, named=True)
794 794
795 def __hgQueuePopPatchesForced(self): 795 def __hgQueuePopPatchesForced(self):
796 """ 796 """
797 Private slot used to pop patches off the stack until a named 797 Private slot used to pop patches off the stack until a named
798 one is at the top forgetting any local changes to patched files. 798 one is at the top forgetting any local changes to patched files.
799 """ 799 """
800 self.vcs.getExtensionObject("mq")\ 800 self.vcs.getExtensionObject("mq")\
801 .hgQueuePushPopPatches(self.project.getProjectPath(), 801 .hgQueuePushPopPatches(self.project.getProjectPath(),
802 operation=Queues.POP, all=False, named=True, force=True) 802 operation=Queues.POP, all=False, named=True, force=True)
803 803
804 def __hgQueueGotoPatch(self): 804 def __hgQueueGotoPatch(self):
805 """ 805 """
806 Private slot used to push or pop patches until the a named one 806 Private slot used to push or pop patches until the a named one
807 is at the top of the stack. 807 is at the top of the stack.
808 """ 808 """
809 self.vcs.getExtensionObject("mq")\ 809 self.vcs.getExtensionObject("mq")\
810 .hgQueuePushPopPatches(self.project.getProjectPath(), 810 .hgQueuePushPopPatches(self.project.getProjectPath(),
811 operation=Queues.GOTO, all=False, named=True) 811 operation=Queues.GOTO, all=False, named=True)
812 812
813 def __hgQueueGotoPatchForced(self): 813 def __hgQueueGotoPatchForced(self):
814 """ 814 """
815 Private slot used to push or pop patches until the a named one 815 Private slot used to push or pop patches until the a named one
816 is at the top of the stack overwriting local changes. 816 is at the top of the stack overwriting local changes.
817 """ 817 """
818 self.vcs.getExtensionObject("mq")\ 818 self.vcs.getExtensionObject("mq")\
819 .hgQueuePushPopPatches(self.project.getProjectPath(), 819 .hgQueuePushPopPatches(self.project.getProjectPath(),
820 operation=Queues.GOTO, all=False, named=True, force=True) 820 operation=Queues.GOTO, all=False, named=True, force=True)
821 821
822 def __hgQueueListPatches(self): 822 def __hgQueueListPatches(self):
823 """ 823 """
824 Private slot used to show a list of applied and unapplied patches. 824 Private slot used to show a list of applied and unapplied patches.

eric ide

mercurial