Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.3, 2.0.4, and 2.0.5

stable grep: do not abort search on file read error (fixes #340)

The exception in #340 was actually caught in changeset ef48dc901ed8,
but it would abort the entire search.

Changeset 9592a5ea3c41

Parent 5544f6e12df4

by Steve Borho

Changes to one file · Browse files at 9592a5ea3c41 Showing diff from parent 5544f6e12df4 Diff from another changeset...

 
457
458
459
460
 
 
 
 
 
 
461
462
463
 
457
458
459
 
460
461
462
463
464
465
466
467
468
@@ -457,7 +457,12 @@
  count += 1   if not matchfn(wfile):   continue - data = ctx[wfile].data() # load file data + try: + data = ctx[wfile].data() # load file data + except EnvironmentError: + self.showMessage.emit(_('Skipping %s, unable to read') % + hglib.tounicode(wfile)) + continue   if util.binary(data):   continue   for i, line in enumerate(data.splitlines()):