diff test/org/tmatesoft/hg/test/RepoUtils.java @ 660:4fd317a2fecf

Pull: phase1 get remote changes and add local revisions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 09 Jul 2013 21:46:45 +0200
parents 12a4f60ea972
children 42b88709e41d
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/RepoUtils.java	Thu Jul 04 21:09:33 2013 +0200
+++ b/test/org/tmatesoft/hg/test/RepoUtils.java	Tue Jul 09 21:46:45 2013 +0200
@@ -199,4 +199,10 @@
 		}
 		return allRevs;
 	}
+
+	static void assertHgVerifyOk(ErrorCollectorExt errorCollector, File repoLoc) throws InterruptedException, IOException {
+		ExecHelper verifyRun = new ExecHelper(new OutputParser.Stub(), repoLoc);
+		verifyRun.run("hg", "verify");
+		errorCollector.assertEquals("hg verify", 0, verifyRun.getExitValue());
+	}
 }