Commits

Vsevolod Parfenov  committed 05ab512

checkfiles: Fixed detection of deleted files

  • Participants
  • Parent commits 80b7a4d

Comments (0)

Files changed (1)

File checkfiles.py

         except LookupError:
             self.ui.debug('checkfiles: skipping %s (deleted)\n' % file)
             return False
+            
+        if fctx == None:
+            self.ui.debug('checkfiles: skipping %s (deleted)\n' % file)
+            return False
 
+        try:
+            data = fctx.data()
+        except:
+            self.ui.debug('checkfiles: skipping %s (deleted)\n' % file)
+            return False
+            
         if '\0' in fctx.data():
             self.ui.debug('checkfiles: skipping %s (binary)\n' % file)
             return False