869 |
869 |
870 def initMenu(self, mainMenu): |
870 def initMenu(self, mainMenu): |
871 """ |
871 """ |
872 Public method to generate the extension menu. |
872 Public method to generate the extension menu. |
873 |
873 |
874 @param mainMenu reference to the main menu (QMenu) |
874 @param mainMenu reference to the main menu |
875 @return populated menu (QMenu) |
875 @type QMenu |
|
876 @return populated menu |
|
877 @rtype QMenu |
876 """ |
878 """ |
877 menu = QMenu(self.menuTitle(), mainMenu) |
879 menu = QMenu(self.menuTitle(), mainMenu) |
878 menu.setTearOffEnabled(True) |
880 menu.setTearOffEnabled(True) |
879 |
881 |
880 pushPopMenu = QMenu(self.tr("Push/Pop"), menu) |
882 pushPopMenu = QMenu(self.tr("Push/Pop"), menu) |
1000 Private method to push patches onto the stack or pop patches off the |
1003 Private method to push patches onto the stack or pop patches off the |
1001 stack. |
1004 stack. |
1002 |
1005 |
1003 @param operation operation type to be performed (Queues.POP, |
1006 @param operation operation type to be performed (Queues.POP, |
1004 Queues.PUSH, Queues.GOTO) |
1007 Queues.PUSH, Queues.GOTO) |
1005 @param doAll flag indicating to push/pop all (boolean) |
1008 @type int |
|
1009 @param doAll flag indicating to push/pop all |
|
1010 @type bool |
1006 @param named flag indicating to push/pop until a named patch |
1011 @param named flag indicating to push/pop until a named patch |
1007 is at the top of the stack (boolean) |
1012 is at the top of the stack |
1008 @param force flag indicating a forceful pop (boolean) |
1013 @type bool |
|
1014 @param force flag indicating a forceful pop |
|
1015 @type bool |
1009 """ |
1016 """ |
1010 shouldReopen = self.vcs.getExtensionObject("mq").hgQueuePushPopPatches( |
1017 shouldReopen = self.vcs.getExtensionObject("mq").hgQueuePushPopPatches( |
1011 operation=operation, doAll=doAll, named=named, force=force |
1018 operation=operation, doAll=doAll, named=named, force=force |
1012 ) |
1019 ) |
1013 if shouldReopen: |
1020 if shouldReopen: |