diff test/org/tmatesoft/hg/test/TestAuxUtilities.java @ 628:6526d8adbc0f

Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 22 May 2013 15:52:31 +0200
parents e4a71afd3c71
children 6334b0267103
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestAuxUtilities.java	Tue May 21 20:17:33 2013 +0200
+++ b/test/org/tmatesoft/hg/test/TestAuxUtilities.java	Wed May 22 15:52:31 2013 +0200
@@ -41,6 +41,7 @@
 import org.tmatesoft.hg.repo.HgManifest;
 import org.tmatesoft.hg.repo.HgManifest.Flags;
 import org.tmatesoft.hg.repo.HgRepository;
+import org.tmatesoft.hg.repo.HgRuntimeException;
 import org.tmatesoft.hg.util.Adaptable;
 import org.tmatesoft.hg.util.ByteChannel;
 import org.tmatesoft.hg.util.CancelSupport;
@@ -285,7 +286,7 @@
 		fileNode.indexWalk(0, TIP, new HgDataFile.RevisionInspector() {
 			int i = 0;
 
-			public void next(int localRevision, Nodeid revision, int linkedRevision) {
+			public void next(int localRevision, Nodeid revision, int linkedRevision) throws HgRuntimeException {
 				assertEquals(i++, localRevision);
 				assertEquals(fileNode.getChangesetRevisionIndex(localRevision), linkedRevision);
 				assertEquals(fileNode.getRevision(localRevision), revision);