diff test/org/tmatesoft/hg/test/TestRevlog.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 73c20c648c1f
children 7839ff0bfd78
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestRevlog.java	Tue May 21 20:17:33 2013 +0200
+++ b/test/org/tmatesoft/hg/test/TestRevlog.java	Wed May 22 15:52:31 2013 +0200
@@ -33,6 +33,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.Path;
 
 /**
@@ -187,7 +188,7 @@
 		return patch1;
 	}
 	
-	private byte[] getRevisionTrueContent(File repoLoc, final int manifestRev, int clogRev) throws HgRepositoryNotFoundException {
+	private byte[] getRevisionTrueContent(File repoLoc, final int manifestRev, int clogRev) throws HgRepositoryNotFoundException, IllegalArgumentException, HgRuntimeException {
 		HgRepository hgRepo = new HgLookup().detect(repoLoc);
 		final ByteArrayOutputStream out = new ByteArrayOutputStream(1024 * 1000);
 		hgRepo.getManifest().walk(clogRev, clogRev, new HgManifest.Inspector() {