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

status: catch lookup errors when generating diffs

Changeset 7d6be781dd6c

Parent 7a6e8c8784f8

by Steve Borho

Changes to one file · Browse files at 7d6be781dd6c Showing diff from parent 7a6e8c8784f8 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
912
913
914
915
 
 
 
 
916
917
918
 
912
913
914
 
915
916
917
918
919
920
921
@@ -912,7 +912,10 @@
  'Get diffs of working file, parse into (c)hunks'   difftext = cStringIO.StringIO()   ctx = self.repo[self._node1] - fctx = ctx.filectx(wfile) + try: + fctx = ctx.filectx(wfile) + except hglib.LookupError: + fctx = None   if fctx and fctx.size() > hglib.getmaxdiffsize(self.ui):   # Fake patch that displays size warning   lines = ['diff --git -r a/%s b/%s\n' % (wfile, wfile)]