Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

changeset: fix display of deleted files

Changeset 87b3a6cc0bf4

Parent 6731f4a8e3ca

by Steve Borho

Changes to one file · Browse files at 87b3a6cc0bf4 Showing diff from parent 6731f4a8e3ca Diff from another changeset...

 
186
187
188
189
190
191
192
 
 
 
 
 
193
194
195
 
186
187
188
 
 
 
 
189
190
191
192
193
194
195
196
@@ -186,10 +186,11 @@
  eob = buf.get_end_iter()   offset = eob.get_offset()   - fctx = self.repo[rev].filectx(wfile) - if not fctx: - return - if fctx.size() > getmaxdiffsize(self.ui): + try: + fctx = self.repo[rev].filectx(wfile) + except LookupError: + fctx = None + if fctx and fctx.size() > getmaxdiffsize(self.ui):   lines = ['diff',   _(' %s is larger than the specified max diff size') % wfile]   else: