Changeset 19b52bb5ca15…
Parent 1bcb73cf7bd4…
by
Changes to one file · Browse files at 19b52bb5ca15 Showing diff from parent 1bcb73cf7bd4 Diff from another changeset...
@@ -682,7 +682,10 @@ if ctx.rev() is None:
return
wsub, filename, ctx = hglib.getDeepestSubrepoContainingFile(filename, ctx)
- assert filename in ctx
+ if wsub is None:
+ # The file was not found in the repo context or its subrepos
+ # This may happen for files that have been removed
+ return
self.ctx = ctx
self.annfile = filename
self._thread.abort()
|
Loading...