Mercurial > hg4j
comparison cmdline/org/tmatesoft/hg/console/Incoming.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 | ef8eba4aa215 |
| children | 45dc79e545f5 |
comparison
equal
deleted
inserted
replaced
| 214:4252faa556cd | 215:41a778e3fd31 |
|---|---|
| 58 return; | 58 return; |
| 59 } | 59 } |
| 60 HgIncomingCommand cmd = hgRepo.createIncomingCommand(); | 60 HgIncomingCommand cmd = hgRepo.createIncomingCommand(); |
| 61 cmd.against(hgRemote); | 61 cmd.against(hgRemote); |
| 62 // | 62 // |
| 63 List<Nodeid> missing = cmd.executeLite(null); | 63 List<Nodeid> missing = cmd.executeLite(); |
| 64 Collections.reverse(missing); // useful to test output, from newer to older | 64 Collections.reverse(missing); // useful to test output, from newer to older |
| 65 Outgoing.dump("Nodes to fetch:", missing); | 65 Outgoing.dump("Nodes to fetch:", missing); |
| 66 System.out.printf("Total: %d\n\n", missing.size()); | 66 System.out.printf("Total: %d\n\n", missing.size()); |
| 67 // | 67 // |
| 68 // Complete | 68 // Complete |
