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

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

Changeset db8d3f547aa0

Parent c1a754986c3b

by David Golub

Changes to one file · Browse files at db8d3f547aa0 Showing diff from parent c1a754986c3b Diff from another changeset...

 
304
305
306
307
 
308
309
310
 
304
305
306
 
307
308
309
310
@@ -304,7 +304,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: