Commits

Angel Ezquerra committed 8ee0b00

commit: fix the 'Search in All History' file view context menu

  • Participants
  • Parent commits f208132

Comments (0)

Files changed (3)

tortoisehg/hgqt/commit.py

     commitButtonEnable = pyqtSignal(bool)
     linkActivated = pyqtSignal(QString)
     showMessage = pyqtSignal(unicode)
+    grepRequested = pyqtSignal(unicode, dict)
     commitComplete = pyqtSignal()
 
     progress = pyqtSignal(QString, object, QString, QString, object)
         self.stwidget.progress.connect(self.progress)
         self.stwidget.linkActivated.connect(self.linkActivated)
         self.stwidget.fileDisplayed.connect(self.fileDisplayed)
+        self.stwidget.grepRequested.connect(self.grepRequested)
         self.msghistory = []
         self.runner = cmdui.Runner(not embedded, self)
         self.runner.setTitle(_('Commit', 'window title'))

tortoisehg/hgqt/repowidget.py

         cw.endSuppressPrompt.connect(self.endSuppressPrompt)
         cw.linkActivated.connect(self._openLink)
         cw.showMessage.connect(self.showMessage)
+        cw.grepRequested.connect(self.grep)
         QTimer.singleShot(0, cw.reload)
         return cw
 

tortoisehg/hgqt/status.py

     linkActivated = pyqtSignal(QString)
     showMessage = pyqtSignal(unicode)
     fileDisplayed = pyqtSignal(QString, QString)
+    grepRequested = pyqtSignal(unicode, dict)
 
     def __init__(self, repo, pats, opts, parent=None, checkable=True,
                  defcheck='MAR!S'):
         self.fileview.shelveToolExited.connect(self.refreshWctx)
         self.fileview.newChunkList.connect(self.updatePartials)
         self.fileview.chunkSelectionChanged.connect(self.chunkSelectionChanged)
+        self.fileview.grepRequested.connect(self.grepRequested)
         self.fileview.setContext(self.repo[None])
         self.fileview.setMinimumSize(QSize(16, 16))
         vbox.addWidget(self.fileview, 1)