diff src/org/tmatesoft/hg/internal/FileAnnotation.java @ 554:a5fd757d1b5d

Access to content of annotated files through BlockData interface
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 21 Feb 2013 21:53:55 +0100
parents ab21ac7dd833
children e623aa2ca526
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileAnnotation.java	Thu Feb 21 20:25:26 2013 +0100
+++ b/src/org/tmatesoft/hg/internal/FileAnnotation.java	Thu Feb 21 21:53:55 2013 +0100
@@ -19,6 +19,7 @@
 import java.util.LinkedList;
 
 import org.tmatesoft.hg.internal.AnnotateFacility.AddBlock;
+import org.tmatesoft.hg.internal.AnnotateFacility.BlockData;
 import org.tmatesoft.hg.internal.AnnotateFacility.ChangeBlock;
 import org.tmatesoft.hg.internal.AnnotateFacility.DeleteBlock;
 import org.tmatesoft.hg.internal.AnnotateFacility.EqualBlock;
@@ -51,9 +52,9 @@
 			delegate = lineInspector;
 		}
 		
-		public void start(int originLineCount, int targetLineCount) {
+		public void start(BlockData originContent, BlockData targetContent) {
 			if (knownLines == null) {
-				knownLines = new boolean[targetLineCount];
+				knownLines = new boolean[targetContent.elementCount()];
 			}
 		}