Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph

grep: exclude kbfiles/largefiles standins when searching history

Changeset 9810d8e242a8

Parent a5c7c153c16e

by David Golub

Changes to one file · Browse files at 9810d8e242a8 Showing diff from parent a5c7c153c16e Diff from another changeset...

 
385
386
387
 
 
388
389
390
 
400
401
402
 
 
 
 
403
404
405
 
385
386
387
388
389
390
391
392
 
402
403
404
405
406
407
408
409
410
411
@@ -385,6 +385,8 @@
  pass     def run(self): + haskbf = settings.hasExtension('kbfiles') + haslf = settings.hasExtension('largefiles')   self.thread_id = int(QThread.currentThreadId())     def emitrow(row): @@ -400,6 +402,10 @@
  try:   fname, line, rev, addremove, user, text, tail = \   self.fullmsg.split('\0', 6) + if haslf and thgrepo.isLfStandin(fname): + raise ValueError + if (haslf or haskbf) and thgrepo.isBfStandin(fname): + raise ValueError   text = hglib.tounicode(text)   text = Qt.escape(text)   text = '<b>%s</b> <span>%s</span>' % (addremove, text)