Commit 3ed5d4cc authored by David Wilhelm's avatar David Wilhelm
Browse files

fileview: ignore missing rev in annotate mode instead of failing

This fixes a traceback seen when starting the workbench, opening the
manifest tab, switching to annotate mode for any file, and clicking on
the Working Directory row in the repoview.

--HG--
branch : stable
parent ad8329baa57d
......@@ -679,7 +679,8 @@ class AnnotateView(qscilib.Scintilla):
pass
def _updateannotation(self, ctx, filename):
assert ctx.rev() is not None
if ctx.rev() is None:
return
wsub, filename, ctx = hglib.getDeepestSubrepoContainingFile(filename, ctx)
assert filename in ctx
self.ctx = ctx
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment