final QSequenceLineResult result = QSequenceLineMedia.createBlocks(new QSequenceLineRAFileData(left), new QSequenceLineRAFileData(right), createSimplifier());
try {
List blocksList = result.getBlocks();
for(int i = 0; i < blocksList.size(); i++) {
QSequenceDifferenceBlock block = (QSequenceDifferenceBlock) blocksList.get(i);
copyOldLinesToNewLines(oldStart, newStart, block.getLeftFrom() - oldStart, myLines, newLines, result.getRightCache());
// copy all from right.
for (int j = block.getRightFrom(); j <= block.getRightTo(); j++) {
LineInfo line = new LineInfo();
line.revision = myCurrentDate != null ? myCurrentRevision : -1;
line.author = myCurrentAuthor;
line.line = result.getRightCache().getLine(j).getContentBytes();
line.date = myCurrentDate;
newLines.add(line);
}
oldStart = block.getLeftTo() + 1;
newStart = block.getRightTo() + 1;
}
copyOldLinesToNewLines(oldStart, newStart, myLines.size() - oldStart, myLines, newLines, result.getRightCache());
myLines = newLines;
}
finally {