Changeset 7d6be781dd6c…
Parent 7a6e8c8784f8…
by
Changes to one file · Browse files at 7d6be781dd6c Showing diff from parent 7a6e8c8784f8 Diff from another changeset...
@@ -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)]
|
Loading...