comparison cmdline/org/tmatesoft/hg/console/Main.java @ 345:58725dd511b3

Provide access to revision's origins
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 22 Nov 2011 03:14:40 +0100
parents 75c452fdd76a
children a0864b2892cd
comparison
equal deleted inserted replaced
344:168f1994de7e 345:58725dd511b3
97 // m.testSubrepos(); 97 // m.testSubrepos();
98 // m.testReadWorkingCopy(); 98 // m.testReadWorkingCopy();
99 // m.testParents(); 99 // m.testParents();
100 // m.testEffectiveFileLog(); 100 // m.testEffectiveFileLog();
101 // m.testCatAtCsetRevision(); 101 // m.testCatAtCsetRevision();
102 m.testMergeState(); 102 // m.testMergeState();
103 // m.testFileStatus(); 103 // m.testFileStatus();
104 // m.dumpBranches(); 104 // m.dumpBranches();
105 // m.inflaterLengthException(); 105 // m.inflaterLengthException();
106 // m.dumpIgnored(); 106 // m.dumpIgnored();
107 // m.dumpDirstate(); 107 // m.dumpDirstate();
108 // m.testStatusInternals(); 108 // m.testStatusInternals();
109 // m.catCompleteHistory(); 109 // m.catCompleteHistory();
110 // m.dumpCompleteManifestLow(); 110 // m.dumpCompleteManifestLow();
111 // m.dumpCompleteManifestHigh(); 111 m.dumpCompleteManifestHigh();
112 // m.bunchOfTests(); 112 // m.bunchOfTests();
113 } 113 }
114 114
115 private void buildFileLog() throws Exception { 115 private void buildFileLog() throws Exception {
116 HgLogCommand cmd = new HgLogCommand(hgRepo); 116 HgLogCommand cmd = new HgLogCommand(hgRepo);
493 public void dir(Path p) { 493 public void dir(Path p) {
494 System.out.println(p); 494 System.out.println(p);
495 } 495 }
496 public void file(HgFileRevision fileRevision) { 496 public void file(HgFileRevision fileRevision) {
497 System.out.print(fileRevision.getRevision());; 497 System.out.print(fileRevision.getRevision());;
498 System.out.print(" ");
499 System.out.printf("%s %s", fileRevision.getParents().first().shortNotation(), fileRevision.getParents().second().shortNotation());
498 System.out.print(" "); 500 System.out.print(" ");
499 System.out.println(fileRevision.getPath()); 501 System.out.println(fileRevision.getPath());
500 } 502 }
501 503
502 public void end(Nodeid manifestRevision) { 504 public void end(Nodeid manifestRevision) {