Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

revdisplay: kill searchString()

Changeset ee3a89539146

Parent a45c7a968b19

by Adrian Buehlmann

Changes to one file · Browse files at ee3a89539146 Showing diff from parent a45c7a968b19 Diff from another changeset...

 
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
 
98
99
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
@@ -98,24 +98,3 @@
  cursor.setPosition(0)   msg.setTextCursor(cursor)   msg.setExtraSelections([]) - - def searchString(self, text): - msg = self._message - self.selectNone() - if text in unicode(msg.toPlainText()): - clist = [] - while msg.find(text): - eselect = msg.ExtraSelection() - eselect.cursor = msg.textCursor() - eselect.format.setBackground(QtGui.QColor('#ffffbb')) - clist.append(eselect) - self.selectNone() - msg.setExtraSelections(clist) - def finditer(msg, text): - if text: - while True: - if msg.find(text): - yield self.ctx.rev(), None - else: - break - return finditer(msg, text)