diff cmdline/org/tmatesoft/hg/console/Main.java @ 481:a458f9fb00ce

Access to user-supplied message of last commit
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 07 Aug 2012 14:02:28 +0200
parents 59b7c817bc4d
children e31e85cf4d4c
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java	Tue Jul 17 22:14:21 2012 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Main.java	Tue Aug 07 14:02:28 2012 +0200
@@ -109,6 +109,7 @@
 
 	public static void main(String[] args) throws Exception {
 		Main m = new Main(args);
+		m.dumpCommitLastMessage();
 //		m.buildFileLog();
 //		m.testConsoleLog();
 //		m.testTreeTraversal();
@@ -129,6 +130,10 @@
 //		m.dumpCompleteManifestHigh();
 //		m.bunchOfTests();
 	}
+	
+	private void dumpCommitLastMessage() throws Exception {
+		System.out.println(hgRepo.getCommitLastMessage());
+	}
 
 	private void buildFileLog() throws Exception {
 		final long start = System.nanoTime();