Plugins/VcsPlugins/vcsMercurial/QueuesExtension/ProjectHelper.py

changeset 5588
6ba512d9f46a
parent 5389
9b1c800daff3
child 5590
40e18a10d837
equal deleted inserted replaced
5587:ea526b78ee6c 5588:6ba512d9f46a
812 Private slot used to show the commit message of the current patch. 812 Private slot used to show the commit message of the current patch.
813 """ 813 """
814 self.vcs.getExtensionObject("mq")\ 814 self.vcs.getExtensionObject("mq")\
815 .hgQueueShowHeader(self.project.getProjectPath()) 815 .hgQueueShowHeader(self.project.getProjectPath())
816 816
817 def __hgQueuePushPopPatches(self, name, operation, all=False, named=False, 817 def __hgQueuePushPopPatches(self, name, operation, doAll=False,
818 force=False): 818 named=False, force=False):
819 """ 819 """
820 Private method to push patches onto the stack or pop patches off the 820 Private method to push patches onto the stack or pop patches off the
821 stack. 821 stack.
822 822
823 @param name file/directory name (string) 823 @param name file/directory name (string)
824 @param operation operation type to be performed (Queues.POP, 824 @param operation operation type to be performed (Queues.POP,
825 Queues.PUSH, Queues.GOTO) 825 Queues.PUSH, Queues.GOTO)
826 @keyparam all flag indicating to push/pop all (boolean) 826 @keyparam doAll flag indicating to push/pop all (boolean)
827 @keyparam named flag indicating to push/pop until a named patch 827 @keyparam named flag indicating to push/pop until a named patch
828 is at the top of the stack (boolean) 828 is at the top of the stack (boolean)
829 @keyparam force flag indicating a forceful pop (boolean) 829 @keyparam force flag indicating a forceful pop (boolean)
830 """ 830 """
831 shouldReopen = self.vcs.getExtensionObject("mq")\ 831 shouldReopen = self.vcs.getExtensionObject("mq")\
832 .hgQueuePushPopPatches(name, operation=operation, all=all, 832 .hgQueuePushPopPatches(name, operation=operation, doAll=doAll,
833 named=named, force=force) 833 named=named, force=force)
834 if shouldReopen: 834 if shouldReopen:
835 res = E5MessageBox.yesNo( 835 res = E5MessageBox.yesNo(
836 None, 836 None,
837 self.tr("Changing Applied Patches"), 837 self.tr("Changing Applied Patches"),

eric ide

mercurial