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

fogcreek grep: exclude kbfiles/largefiles standins when searching history

Changeset e548b87269a0

Parent f5b67942a105

by David Golub

Changes to one file · Browse files at e548b87269a0 Showing diff from parent f5b67942a105 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)