diff src/org/tmatesoft/hg/internal/RepositoryComparator.java @ 354:5f9073eabf06

Propagate errors with exceptions up to a end client
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 01 Dec 2011 05:21:40 +0100
parents 981f9f50bb6c
children 2fadf8695f8a
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RepositoryComparator.java	Thu Dec 01 03:05:28 2011 +0100
+++ b/src/org/tmatesoft/hg/internal/RepositoryComparator.java	Thu Dec 01 05:21:40 2011 +0100
@@ -30,6 +30,7 @@
 import java.util.Set;
 
 import org.tmatesoft.hg.core.HgBadStateException;
+import org.tmatesoft.hg.core.HgInvalidControlFileException;
 import org.tmatesoft.hg.core.HgRemoteConnectionException;
 import org.tmatesoft.hg.core.Nodeid;
 import org.tmatesoft.hg.repo.HgChangelog;
@@ -90,7 +91,7 @@
 	 * only its revision number. 
 	 * @param inspector delegate to analyze changesets, shall not be <code>null</code>
 	 */
-	public void visitLocalOnlyRevisions(HgChangelog.Inspector inspector) {
+	public void visitLocalOnlyRevisions(HgChangelog.Inspector inspector) throws HgInvalidControlFileException {
 		if (inspector == null) {
 			throw new IllegalArgumentException();
 		}