diff src/org/tmatesoft/hg/internal/FileAnnotation.java @ 562:6fbca6506bb5

Allow HgBlameFacility.Inspector (former BlockInspector) to throw an exception
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 28 Feb 2013 15:57:04 +0100
parents 52263817b998
children 8ed4f4f4f0a6
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileAnnotation.java	Wed Feb 27 19:37:58 2013 +0100
+++ b/src/org/tmatesoft/hg/internal/FileAnnotation.java	Thu Feb 28 15:57:04 2013 +0100
@@ -17,6 +17,7 @@
 package org.tmatesoft.hg.internal;
 
 
+import org.tmatesoft.hg.core.HgCallbackTargetException;
 import org.tmatesoft.hg.core.HgIterateDirection;
 import org.tmatesoft.hg.repo.HgBlameFacility;
 import org.tmatesoft.hg.repo.HgInvalidStateException;
@@ -34,7 +35,7 @@
  * @author Artem Tikhomirov
  * @author TMate Software Ltd.
  */
-public class FileAnnotation implements HgBlameFacility.BlockInspector, RevisionDescriptor.Recipient {
+public class FileAnnotation implements HgBlameFacility.Inspector, RevisionDescriptor.Recipient {
 
 	@Experimental(reason="The line-by-line inspector likely to become part of core/command API")
 	@Callback
@@ -52,7 +53,7 @@
 	/**
 	 * Annotate file revision, line by line.
 	 */
-	public static void annotate(HgDataFile df, int changelogRevisionIndex, LineInspector insp) {
+	public static void annotate(HgDataFile df, int changelogRevisionIndex, LineInspector insp) throws HgCallbackTargetException {
 		if (!df.exists()) {
 			return;
 		}