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

status: gracefully catch files being deleted or unreadable

Changeset 8c0d54baf634

Parent c687430aa08e

by Steve Borho

Changes to one file · Browse files at 8c0d54baf634 Showing diff from parent c687430aa08e Diff from another changeset...

 
312
313
314
315
 
 
 
 
316
317
318
 
312
313
314
 
315
316
317
318
319
320
321
@@ -312,7 +312,10 @@
  if status in '?I':   if showanyway:   # Read untracked file contents from working directory - diff = open(self.repo.wjoin(wfile), 'r').read() + try: + diff = open(self.repo.wjoin(wfile), 'r').read() + except EnvironmentError, e: + diff = '<b>%s</b>' % str(e)   if '\0' in diff:   diff = _('<b>Contents are binary, not previewable</b>')   self.te.setHtml(diff)