comparison cmdline/org/tmatesoft/hg/console/Main.java @ 426:063b0663495a

HgManifest#getFileRevisions refactored into #walkFileRevisions to match pattern throught rest of the library
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 28 Mar 2012 19:34:37 +0200
parents 48f993aa2f41
children 31a89587eb04
comparison
equal deleted inserted replaced
425:48f993aa2f41 426:063b0663495a
92 System.out.println("REPO:" + hgRepo.getLocation()); 92 System.out.println("REPO:" + hgRepo.getLocation());
93 } 93 }
94 94
95 public static void main(String[] args) throws Exception { 95 public static void main(String[] args) throws Exception {
96 Main m = new Main(args); 96 Main m = new Main(args);
97 m.checkSubProgress(); 97 m.checkWalkFileRevisions();
98 // m.checkSubProgress();
98 // m.checkFileFlags(); 99 // m.checkFileFlags();
99 // m.buildFileLog(); 100 // m.buildFileLog();
100 // m.testConsoleLog(); 101 // m.testConsoleLog();
101 // m.testTreeTraversal(); 102 // m.testTreeTraversal();
102 // m.testRevisionMap(); 103 // m.testRevisionMap();
114 // m.testStatusInternals(); 115 // m.testStatusInternals();
115 // m.catCompleteHistory(); 116 // m.catCompleteHistory();
116 // m.dumpCompleteManifestLow(); 117 // m.dumpCompleteManifestLow();
117 // m.dumpCompleteManifestHigh(); 118 // m.dumpCompleteManifestHigh();
118 // m.bunchOfTests(); 119 // m.bunchOfTests();
120 }
121
122 // hg4j repo
123 public void checkWalkFileRevisions() throws Exception {
124 // hg --debug manifest --rev 150 | grep cmdline/org/tmatesoft/hg/console/Main.java
125 hgRepo.getManifest().walkFileRevisions(Path.create("cmdline/org/tmatesoft/hg/console/Main.java"), new ManifestDump(), 100, 150, 200, 210, 300);
119 } 126 }
120 127
121 // no repo 128 // no repo
122 private void checkSubProgress() { 129 private void checkSubProgress() {
123 ProgressSupport ps = new ProgressSupport() { 130 ProgressSupport ps = new ProgressSupport() {