Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.3, 2.0, and 2.0.1

stable workbench: remove MQ toolbar

The MQ toolbar violated our policy of exposing extensions before they are
enabled, and was made very redundant by the MQ task tab. These toolbar buttons
were not very well behaved, they could not be greyed out while they were busy.

Removing these will probably raise a few hackles, but I'm fine with it.

Changeset bee907665ec8

Parent 0c2458005064

by Steve Borho

Changes to 2 files · Browse files at bee907665ec8 Showing diff from parent 0c2458005064 Diff from another changeset...

 
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
 
726
727
728
 
 
 
 
 
 
 
 
 
 
729
730
731
@@ -726,16 +726,6 @@
  self.taskTabsWidget.setCurrentIndex(self.syncTabIndex)   self.syncDemand.get().push()   - def qpush(self): - """QPush a patch from MQ""" - self.taskTabsWidget.setCurrentIndex(self.mqTabIndex) - self.mqDemand.get().onPush() - - def qpop(self): - """QPop a patch from MQ""" - self.taskTabsWidget.setCurrentIndex(self.mqTabIndex) - self.mqDemand.get().onPop() -   ##   ## Repoview context menu   ##
 
114
115
116
117
118
119
120
121
 
122
123
124
 
318
319
320
321
322
323
324
325
326
327
328
329
330
 
399
400
401
402
403
404
405
406
407
 
114
115
116
 
 
117
118
 
119
120
121
122
 
316
317
318
 
 
 
 
 
 
 
319
320
321
 
390
391
392
 
 
 
393
394
395
@@ -114,11 +114,9 @@
  self.addToolBar(self.synctbar)   self.tasktbar = QToolBar(_('Task Toolbar'), objectName='taskbar')   self.addToolBar(self.tasktbar) - self.mqtbar = QToolBar(_("MQ Toolbar"), objectName='mqtbar') - self.addToolBar(self.mqtbar)     # availability map of actions; applied by updateMenu() - self._actionavails = {'repoopen': [], 'mq': []} + self._actionavails = {'repoopen': []}     def keysequence(o):   """Create QKeySequence from string or QKeySequence""" @@ -318,13 +316,6 @@
  tooltip=_('Push outgoing changes to default push target'),   enabled='repoopen', toolbar='sync')   - newaction(_('QPush'), self._repofwd('qpush'), icon='qpush', - tooltip=_('Apply one patch'), - enabled='mq', toolbar='mq') - newaction(_('QPop'), self._repofwd('qpop'), icon='qpop', - tooltip=_('Unapply one patch'), - enabled='mq', toolbar='mq') -   self.updateMenu()     @pyqtSlot(QAction) @@ -399,9 +390,6 @@
  self.updateToolBarActions()   tw = self.repoTabsWidget   w = tw.currentWidget() - mqEnabled = w and 'mq' in w.repo.extensions() or False - for action in self._actionavails['mq']: - action.setEnabled(mqEnabled)     if tw.count() > 1:   tw.tabBar().show()