Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Incoming.java @ 208:ef8eba4aa215
Correct index of revisions to be added into a repository
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 28 Apr 2011 03:17:50 +0200 |
parents | 63c9fed4369e |
children | 41a778e3fd31 |
comparison
equal
deleted
inserted
replaced
207:1bf0a5af2d5d | 208:ef8eba4aa215 |
---|---|
61 cmd.against(hgRemote); | 61 cmd.against(hgRemote); |
62 // | 62 // |
63 List<Nodeid> missing = cmd.executeLite(null); | 63 List<Nodeid> missing = cmd.executeLite(null); |
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 // | 67 // |
67 // Complete | 68 // Complete |
68 final ChangesetDumpHandler h = new ChangesetDumpHandler(hgRepo.getRepository()); | 69 final ChangesetDumpHandler h = new ChangesetDumpHandler(hgRepo.getRepository()); |
69 h.complete(false); // this option looks up index of parent revision, done via repo.changelog (which doesn't have any of these new revisions) | 70 h.complete(false); // this option looks up index of parent revision, done via repo.changelog (which doesn't have any of these new revisions) |
70 // this can be fixed by tracking all nodeid->revision idx inside ChangesetDumpHandler, and refer to repo.changelog only when that mapping didn't work | 71 // this can be fixed by tracking all nodeid->revision idx inside ChangesetDumpHandler, and refer to repo.changelog only when that mapping didn't work |