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

grep: apply a label to all output text, force it to be escaped

Changeset 464056411bd1

Parent b18a5c913106

by Steve Borho

Changes to one file · Browse files at 464056411bd1 Showing diff from parent b18a5c913106 Diff from another changeset...

 
291
292
293
294
 
295
296
297
298
 
299
300
301
 
291
292
293
 
294
295
296
297
 
298
299
300
301
@@ -291,11 +291,11 @@
  for i, line in enumerate(data.splitlines()):   pos = 0   for m in self.regexp.finditer(line): # perform regexp - hu.write(line[pos:m.start()]) + hu.write(line[pos:m.start()], label='ui.status')   hu.write(line[m.start():m.end()], label='grep.match')   pos = m.end()   if pos: - hu.write(line[pos:]) + hu.write(line[pos:], label='ui.status')   row = [wfile, i + 1, rev, None, hu.getdata()[0]]   self.emit(SIGNAL('matchedRow'), row)   if self.once: