diff cmdline/org/tmatesoft/hg/console/Main.java @ 427:31a89587eb04

FIXMEs: consistent names, throws for commands and their handlers. Use of checked exceptions in hi-level api
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 17:14:35 +0200
parents 063b0663495a
children cd658b24a620
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java	Wed Mar 28 19:34:37 2012 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Main.java	Thu Mar 29 17:14:35 2012 +0200
@@ -28,6 +28,7 @@
 import java.util.Map;
 
 import org.junit.Assert;
+import org.tmatesoft.hg.core.HgManifestHandler;
 import org.tmatesoft.hg.core.HgCallbackTargetException;
 import org.tmatesoft.hg.core.HgCatCommand;
 import org.tmatesoft.hg.core.HgChangeset;
@@ -175,7 +176,7 @@
 		HgLogCommand cmd = new HgLogCommand(hgRepo);
 		cmd.file("file1", false);
 		cmd.execute(new HgChangesetTreeHandler() {
-			public void next(HgChangesetTreeHandler.TreeElement entry) {
+			public void treeElement(HgChangesetTreeHandler.TreeElement entry) {
 				StringBuilder sb = new StringBuilder();
 				HashSet<Nodeid> test = new HashSet<Nodeid>(entry.childRevisions());
 				for (HgChangeset cc : entry.children()) {
@@ -558,7 +559,7 @@
 	}
 
 	private void dumpCompleteManifestHigh() throws Exception {
-		new HgManifestCommand(hgRepo).dirs(true).execute(new HgManifestCommand.Handler() {
+		new HgManifestCommand(hgRepo).dirs(true).execute(new HgManifestHandler() {
 			
 			public void begin(Nodeid manifestRevision) {
 				System.out.println(">> " + manifestRevision);