Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Cat.java @ 96:ace7042a5ce6
Internals to HgInternals
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 27 Jan 2011 21:24:37 +0100 |
| parents | 6f1b88693d48 |
| children | a3a2e5deb320 |
comparison
equal
deleted
inserted
replaced
| 95:bcd31a4c638a | 96:ace7042a5ce6 |
|---|---|
| 17 package org.tmatesoft.hg.console; | 17 package org.tmatesoft.hg.console; |
| 18 | 18 |
| 19 import org.tmatesoft.hg.internal.DigestHelper; | 19 import org.tmatesoft.hg.internal.DigestHelper; |
| 20 import org.tmatesoft.hg.repo.HgDataFile; | 20 import org.tmatesoft.hg.repo.HgDataFile; |
| 21 import org.tmatesoft.hg.repo.HgRepository; | 21 import org.tmatesoft.hg.repo.HgRepository; |
| 22 import org.tmatesoft.hg.repo.Internals; | 22 import org.tmatesoft.hg.repo.HgInternals; |
| 23 | 23 |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * @author Artem Tikhomirov | 26 * @author Artem Tikhomirov |
| 27 * @author TMate Software Ltd. | 27 * @author TMate Software Ltd. |
| 33 HgRepository hgRepo = cmdLineOpts.findRepository(); | 33 HgRepository hgRepo = cmdLineOpts.findRepository(); |
| 34 if (hgRepo.isInvalid()) { | 34 if (hgRepo.isInvalid()) { |
| 35 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); | 35 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); |
| 36 return; | 36 return; |
| 37 } | 37 } |
| 38 Internals debug = new Internals(hgRepo); | 38 HgInternals debug = new HgInternals(hgRepo); |
| 39 String[] toCheck = new String[] {"design.txt", "src/com/tmate/hgkit/ll/Changelog.java", "src/Extras.java", "bin/com/tmate/hgkit/ll/Changelog.class"}; | 39 String[] toCheck = new String[] {"design.txt", "src/com/tmate/hgkit/ll/Changelog.java", "src/Extras.java", "bin/com/tmate/hgkit/ll/Changelog.class"}; |
| 40 boolean[] checkResult = debug.checkIgnored(toCheck); | 40 boolean[] checkResult = debug.checkIgnored(toCheck); |
| 41 for (int i = 0; i < toCheck.length; i++) { | 41 for (int i = 0; i < toCheck.length; i++) { |
| 42 System.out.println("Ignored " + toCheck[i] + ": " + checkResult[i]); | 42 System.out.println("Ignored " + toCheck[i] + ": " + checkResult[i]); |
| 43 } | 43 } |
