Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java @ 502:37d97854c6ad
Respect changesets with no list of changed files, as discovered with Issue 41
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 29 Oct 2012 20:06:16 +0100 |
parents | 7bcfbc255f48 |
children | 6526d8adbc0f |
comparison
equal
deleted
inserted
replaced
501:d2f6ab541330 | 502:37d97854c6ad |
---|---|
107 } | 107 } |
108 if (complete) { | 108 if (complete) { |
109 f.format("phase: %s\n", cset.getPhase().name()); | 109 f.format("phase: %s\n", cset.getPhase().name()); |
110 Nodeid p1 = cset.getFirstParentRevision(); | 110 Nodeid p1 = cset.getFirstParentRevision(); |
111 Nodeid p2 = cset.getSecondParentRevision(); | 111 Nodeid p2 = cset.getSecondParentRevision(); |
112 Nodeid mr = cset.getManifestRevision(); | |
112 int p1x = p1.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p1); | 113 int p1x = p1.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p1); |
113 int p2x = p2.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p2); | 114 int p2x = p2.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p2); |
114 int mx = repo.getManifest().getRevisionIndex(cset.getManifestRevision()); | 115 int mx = mr.isNull() ? -1 : repo.getManifest().getRevisionIndex(mr); |
115 f.format("parent: %d:%s\nparent: %d:%s\nmanifest: %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision()); | 116 f.format("parent: %d:%s\nparent: %d:%s\nmanifest: %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision()); |
116 } | 117 } |
117 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate().toString()); | 118 f.format("user: %s\ndate: %s\n", cset.getUser(), cset.getDate().toString()); |
118 if (!complete && verbose) { | 119 if (!complete && verbose) { |
119 final List<Path> files = cset.getAffectedFiles(); | 120 final List<Path> files = cset.getAffectedFiles(); |