diff cmdline/org/tmatesoft/hg/console/Bundle.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 9c9c442b5f2e
children
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Bundle.java	Tue May 21 20:17:33 2013 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Bundle.java	Wed May 22 15:52:31 2013 +0200
@@ -29,6 +29,7 @@
 import org.tmatesoft.hg.repo.HgBundle.GroupElement;
 import org.tmatesoft.hg.repo.HgBundle.Inspector;
 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset;
+import org.tmatesoft.hg.repo.HgRuntimeException;
 
 
 /**
@@ -60,7 +61,7 @@
 		hgBundle.changes(hgRepo, new HgChangelog.Inspector() {
 			private final HgChangelog changelog = hgRepo.getChangelog();
 			
-			public void next(int revisionNumber, Nodeid nodeid, RawChangeset cset) {
+			public void next(int revisionNumber, Nodeid nodeid, RawChangeset cset) throws HgRuntimeException {
 				if (changelog.isKnown(nodeid)) {
 					System.out.print("+");
 				} else {
@@ -99,7 +100,7 @@
 
  */
 
-	public static void dump(HgBundle hgBundle) throws HgException {
+	public static void dump(HgBundle hgBundle) throws HgException, HgRuntimeException {
 		Dump dump = new Dump();
 		hgBundle.inspectAll(dump);
 		System.out.println("Total files:" + dump.names.size());