Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

stable fileview: do not crash when showing the annotate tool for removed files

Changeset 19b52bb5ca15

Parent 1bcb73cf7bd4

by Angel Ezquerra

Changes to one file · Browse files at 19b52bb5ca15 Showing diff from parent 1bcb73cf7bd4 Diff from another changeset...

 
682
683
684
685
 
 
 
 
686
687
688
 
682
683
684
 
685
686
687
688
689
690
691
@@ -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()