Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java @ 367:2fadf8695f8a
Use 'revision index' instead of the vague 'local revision number' concept in the API
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 16 Dec 2011 15:37:27 +0100 |
parents | fa4aea41746e |
children | 9c9c442b5f2e d0e5dc3cae6e |
comparison
equal
deleted
inserted
replaced
366:189dc6dc1c3e | 367:2fadf8695f8a |
---|---|
106 sb.append('\n'); | 106 sb.append('\n'); |
107 } | 107 } |
108 if (complete) { | 108 if (complete) { |
109 Nodeid p1 = cset.getFirstParentRevision(); | 109 Nodeid p1 = cset.getFirstParentRevision(); |
110 Nodeid p2 = cset.getSecondParentRevision(); | 110 Nodeid p2 = cset.getSecondParentRevision(); |
111 int p1x = p1.isNull() ? -1 : repo.getChangelog().getLocalRevision(p1); | 111 int p1x = p1.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p1); |
112 int p2x = p2.isNull() ? -1 : repo.getChangelog().getLocalRevision(p2); | 112 int p2x = p2.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p2); |
113 int mx = repo.getManifest().getLocalRevision(cset.getManifestRevision()); | 113 int mx = repo.getManifest().getRevisionIndex(cset.getManifestRevision()); |
114 f.format("parent: %d:%s\nparent: %d:%s\nmanifest: %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision()); | 114 f.format("parent: %d:%s\nparent: %d:%s\nmanifest: %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision()); |
115 } | 115 } |
116 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate().toString()); | 116 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate().toString()); |
117 if (!complete && verbose) { | 117 if (!complete && verbose) { |
118 final List<Path> files = cset.getAffectedFiles(); | 118 final List<Path> files = cset.getAffectedFiles(); |