comparison src/com/tmate/hgkit/console/Log.java @ 6:5abe5af181bd

Ant script to build commands and run sample
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 22 Dec 2010 03:33:37 +0100
parents aa1912c70b36
children a78c980749e3
comparison
equal deleted inserted replaced
5:fc265ddeab26 6:5abe5af181bd
27 public void next(Changeset cset) { 27 public void next(Changeset cset) {
28 System.out.println("==>"); 28 System.out.println("==>");
29 cset.dump(); 29 cset.dump();
30 } 30 }
31 }; 31 };
32 for (String fname : cmdLineOpts.files) { 32 if (cmdLineOpts.files.isEmpty()) {
33 HgDataFile f1 = hgRepo.getFileNode(fname); 33 System.out.println("Complete history of the repo:");
34 System.out.println("\nComplete of a file: " + fname); 34 hgRepo.getChangelog().all(callback);
35 f1.history(callback); 35 } else {
36 for (String fname : cmdLineOpts.files) {
37 HgDataFile f1 = hgRepo.getFileNode(fname);
38 System.out.println("History of the file: " + fname);
39 f1.history(callback);
40 }
41 }
36 // 42 //
37 // System.out.println("\n\n========================="); 43 // System.out.println("\n\n=========================");
38 // System.out.println("Range 1-3:"); 44 // System.out.println("Range 1-3:");
39 // f1.history(1,3, callback); 45 // f1.history(1,3, callback);
40 }
41 // 46 //
42 System.out.println("\n\n=========================");
43 System.out.println("Complete of a repo:");
44 hgRepo.getChangelog().all(callback);
45 //new ChangelogWalker().setFile("hello.c").setRevisionRange(1, 4).accept(new Visitor); 47 //new ChangelogWalker().setFile("hello.c").setRevisionRange(1, 4).accept(new Visitor);
46 } 48 }
47
48 } 49 }