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

filedata: fix crash when browsing a patch with a deleted file (fixes #1038)

Changeset 5b5b03863da0

Parent f0179326f34e

by David Golub

Changes to one file · Browse files at 5b5b03863da0 Showing diff from parent f0179326f34e Diff from another changeset...

 
303
304
305
306
 
307
308
309
 
303
304
305
 
306
307
308
309
@@ -303,7 +303,7 @@
  else:   self.contents = olddata   self.flabel += _(' <i>(was deleted)</i>') - elif ctx.p1().hasBfile(wfile): + elif hasattr(ctx.p1(), 'hasBfile') and ctx.p1().hasBfile(wfile):   self.error = 'binary file'   self.flabel += _(' <i>(was deleted)</i>')   else: