comparison 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
comparison
equal deleted inserted replaced
46:4022c34a4804 47:b01500fe2604
8 import java.io.DataInputStream; 8 import java.io.DataInputStream;
9 import java.io.File; 9 import java.io.File;
10 import java.io.FileInputStream; 10 import java.io.FileInputStream;
11 import java.math.BigInteger; 11 import java.math.BigInteger;
12 import java.util.LinkedList; 12 import java.util.LinkedList;
13 import java.util.Locale;
13 import java.util.zip.Inflater; 14 import java.util.zip.Inflater;
14 15
15 import com.tmate.hgkit.ll.Changeset; 16 import com.tmate.hgkit.ll.Changeset;
16 17
17 /** 18 /**
79 // 80 //
80 System.out.println("\n\n"); 81 System.out.println("\n\n");
81 System.out.println("====================>"); 82 System.out.println("====================>");
82 for (Changeset cset : changelog) { 83 for (Changeset cset : changelog) {
83 System.out.println(">"); 84 System.out.println(">");
84 cset.dump(); 85 System.out.println("User: " + cset.user());
86 System.out.println("Comment: " + cset.comment());
87 System.out.println("Manifest: " + cset.manifest());
88 System.out.printf(Locale.US, "Date: %ta %<tb %<td %<tH:%<tM:%<tS %<tY %<tz\n", cset.date());
89 System.out.println("Files: " + cset.files().size());
90 if (cset.extras() != null) {
91 System.out.println("Extra: " + cset.extras());
92 }
93 for (String s : cset.files()) {
94 System.out.print('\t');
95 System.out.println(s);
96 }
85 System.out.println("<"); 97 System.out.println("<");
86 } 98 }
87 } 99 }
88 } 100 }