Mercurial > hg4j
comparison 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 |
comparison
equal
deleted
inserted
replaced
307:2f2ab5c27f41 | 308:3f40262153a4 |
---|---|
84 System.out.println("REPO:" + hgRepo.getLocation()); | 84 System.out.println("REPO:" + hgRepo.getLocation()); |
85 } | 85 } |
86 | 86 |
87 public static void main(String[] args) throws Exception { | 87 public static void main(String[] args) throws Exception { |
88 Main m = new Main(args); | 88 Main m = new Main(args); |
89 m.buildFileLog(); | 89 // m.buildFileLog(); |
90 // m.testConsoleLog(); | 90 // m.testConsoleLog(); |
91 // m.testTreeTraversal(); | 91 // m.testTreeTraversal(); |
92 // m.testRevisionMap(); | 92 // m.testRevisionMap(); |
93 // m.testSubrepos(); | 93 // m.testSubrepos(); |
94 // m.testReadWorkingCopy(); | 94 // m.testReadWorkingCopy(); |
95 // m.testParents(); | 95 // m.testParents(); |
96 // m.testEffectiveFileLog(); | 96 // m.testEffectiveFileLog(); |
97 // m.testCatAtCsetRevision(); | 97 // m.testCatAtCsetRevision(); |
98 // m.testMergeState(); | 98 // m.testMergeState(); |
99 // m.testFileStatus(); | 99 // m.testFileStatus(); |
100 // m.dumpBranches(); | 100 m.dumpBranches(); |
101 // m.inflaterLengthException(); | 101 // m.inflaterLengthException(); |
102 // m.dumpIgnored(); | 102 // m.dumpIgnored(); |
103 // m.dumpDirstate(); | 103 // m.dumpDirstate(); |
104 // m.testStatusInternals(); | 104 // m.testStatusInternals(); |
105 // m.catCompleteHistory(); | 105 // m.catCompleteHistory(); |
360 final long start0 = System.currentTimeMillis(); | 360 final long start0 = System.currentTimeMillis(); |
361 HgBranches b = hgRepo.getBranches(); | 361 HgBranches b = hgRepo.getBranches(); |
362 System.out.println("1:" + (System.currentTimeMillis() - start0)); | 362 System.out.println("1:" + (System.currentTimeMillis() - start0)); |
363 for (HgBranches.BranchInfo bi : b.getAllBranches()) { | 363 for (HgBranches.BranchInfo bi : b.getAllBranches()) { |
364 System.out.print(bi.getName()); | 364 System.out.print(bi.getName()); |
365 // if (bi.isClosed()) { | |
366 // System.out.print("!"); | |
367 // } | |
368 // System.out.print(" "); | 365 // System.out.print(" "); |
369 // System.out.print(bi.getStart()); | 366 // System.out.print(bi.getStart()); |
370 System.out.print(" "); | 367 System.out.print(" "); |
371 System.out.println(bi.getHeads()); | 368 System.out.print(bi.getHeads()); |
372 } | 369 if (bi.isClosed()) { |
373 b.writeCache(); | 370 System.out.print(" x "); |
371 } | |
372 System.out.println(); | |
373 } | |
374 // b.writeCache(); | |
374 // final long start = System.currentTimeMillis(); | 375 // final long start = System.currentTimeMillis(); |
375 // for (int i = 0; i < 10; i++) { | 376 // for (int i = 0; i < 10; i++) { |
376 // b.collect(ProgressSupport.Factory.get(null)); | 377 // b.collect(ProgressSupport.Factory.get(null)); |
377 // } | 378 // } |
378 // System.out.println("10:" + (System.currentTimeMillis() - start)); | 379 // System.out.println("10:" + (System.currentTimeMillis() - start)); |