Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestIncoming.java @ 215:41a778e3fd31
Issue 5: Facilities for progress and cancellation. More specific exceptions. Exceptions from callbacks as RuntimeException
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Tue, 17 May 2011 00:56:54 +0200 |
| parents | 883f1efbcf27 |
| children | e51dd9a14b6f |
comparison
equal
deleted
inserted
replaced
| 214:4252faa556cd | 215:41a778e3fd31 |
|---|---|
| 90 HgLogCommand.CollectHandler collector = new HgLogCommand.CollectHandler(); | 90 HgLogCommand.CollectHandler collector = new HgLogCommand.CollectHandler(); |
| 91 LogOutputParser outParser = new LogOutputParser(true); | 91 LogOutputParser outParser = new LogOutputParser(true); |
| 92 ExecHelper eh = new ExecHelper(outParser, new File(localRepo.getLocation())); | 92 ExecHelper eh = new ExecHelper(outParser, new File(localRepo.getLocation())); |
| 93 cmd.executeFull(collector); | 93 cmd.executeFull(collector); |
| 94 eh.run("hg", "incoming", "--debug", hgRemote.getLocation()); | 94 eh.run("hg", "incoming", "--debug", hgRemote.getLocation()); |
| 95 List<Nodeid> liteResult = cmd.executeLite(null); | 95 List<Nodeid> liteResult = cmd.executeLite(); |
| 96 report(collector, outParser, liteResult, errorCollector); | 96 report(collector, outParser, liteResult, errorCollector); |
| 97 return liteResult; | 97 return liteResult; |
| 98 } | 98 } |
| 99 | 99 |
| 100 static void report(HgLogCommand.CollectHandler collector, LogOutputParser outParser, List<Nodeid> liteResult, ErrorCollectorExt errorCollector) { | 100 static void report(HgLogCommand.CollectHandler collector, LogOutputParser outParser, List<Nodeid> liteResult, ErrorCollectorExt errorCollector) { |
