diff src/com/tmate/hgkit/console/Main.java @ 47:b01500fe2604

Log command output to match 'hg log'
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 14 Jan 2011 20:03:14 +0100
parents 603806cd2dc6
children 9429c7bd1920
line wrap: on
line diff
--- a/src/com/tmate/hgkit/console/Main.java	Fri Jan 14 04:56:53 2011 +0100
+++ b/src/com/tmate/hgkit/console/Main.java	Fri Jan 14 20:03:14 2011 +0100
@@ -10,6 +10,7 @@
 import java.io.FileInputStream;
 import java.math.BigInteger;
 import java.util.LinkedList;
+import java.util.Locale;
 import java.util.zip.Inflater;
 
 import com.tmate.hgkit.ll.Changeset;
@@ -81,7 +82,18 @@
 		System.out.println("====================>");
 		for (Changeset cset : changelog) {
 			System.out.println(">");
-			cset.dump();
+			System.out.println("User: " + cset.user());
+			System.out.println("Comment: " + cset.comment());
+			System.out.println("Manifest: " + cset.manifest());
+			System.out.printf(Locale.US, "Date: %ta %<tb %<td %<tH:%<tM:%<tS %<tY %<tz\n", cset.date());
+			System.out.println("Files: " + cset.files().size());
+			if (cset.extras() != null) {
+				System.out.println("Extra: " + cset.extras());
+			}
+			for (String s : cset.files()) {
+				System.out.print('\t');
+					System.out.println(s);
+			}
 			System.out.println("<");
 		}
 	}