boolean (final FilePath file, long indexOffset) { try { indexOffset += INDEX_ENTRY_SIZE; while(indexOffset < myIndexStreamCachedLength) { IndexEntry e = getIndexEntryAtOffset(indexOffset); final CommittedChangeList changeList = getChangeListAtOffset(e.offset); for(Change c: changeList.getChanges()) { final ContentRevision beforeRevision = c.getBeforeRevision(); if ((beforeRevision != null) && (c.getAfterRevision() == null)) { if (isFileDeleted(file, beforeRevision.getFile())) { return true; } } else if ((beforeRevision != null) && (c.getAfterRevision() != null)) { if (isParentReplacedOrFileMoved(file, c, beforeRevision.getFile())) { return true; } } } indexOffset += INDEX_ENTRY_SIZE; } } catch (IOException e) { LOG.error(e); } return false; }