diff cmdline/org/tmatesoft/hg/console/Main.java @ 308:3f40262153a4

Recognize closed branches
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 24 Sep 2011 07:29:05 +0200
parents ae8d116f4ee2
children 09628675bcee
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java	Sat Sep 24 04:06:27 2011 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Main.java	Sat Sep 24 07:29:05 2011 +0200
@@ -86,7 +86,7 @@
 
 	public static void main(String[] args) throws Exception {
 		Main m = new Main(args);
-		m.buildFileLog();
+//		m.buildFileLog();
 //		m.testConsoleLog();
 //		m.testTreeTraversal();
 //		m.testRevisionMap();
@@ -97,7 +97,7 @@
 //		m.testCatAtCsetRevision();
 //		m.testMergeState();
 //		m.testFileStatus();
-//		m.dumpBranches();
+		m.dumpBranches();
 //		m.inflaterLengthException();
 //		m.dumpIgnored();
 //		m.dumpDirstate();
@@ -362,15 +362,16 @@
 		System.out.println("1:" + (System.currentTimeMillis() - start0));
 		for (HgBranches.BranchInfo bi : b.getAllBranches()) {
 			System.out.print(bi.getName());
-//			if (bi.isClosed()) {
-//				System.out.print("!");
-//			}
 //			System.out.print(" ");
 //			System.out.print(bi.getStart());
 			System.out.print(" ");
-			System.out.println(bi.getHeads());
+			System.out.print(bi.getHeads());
+			if (bi.isClosed()) {
+				System.out.print(" x ");
+			}
+			System.out.println();
 		}
-		b.writeCache();
+//		b.writeCache();
 //		final long start = System.currentTimeMillis();
 //		for (int i = 0; i < 10; i++) {
 //			b.collect(ProgressSupport.Factory.get(null));