comparison cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java @ 445:d0e5dc3cae6e smartgit3

Support for phases functionality from Mercurial 2.1
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 05 Jun 2012 20:50:06 +0200
parents 2fadf8695f8a
children 7bcfbc255f48
comparison
equal deleted inserted replaced
412:63c5a9d7ca3f 445:d0e5dc3cae6e
104 sb.append("tip"); 104 sb.append("tip");
105 } 105 }
106 sb.append('\n'); 106 sb.append('\n');
107 } 107 }
108 if (complete) { 108 if (complete) {
109 f.format("phase: %s\n", cset.getPhase().name());
109 Nodeid p1 = cset.getFirstParentRevision(); 110 Nodeid p1 = cset.getFirstParentRevision();
110 Nodeid p2 = cset.getSecondParentRevision(); 111 Nodeid p2 = cset.getSecondParentRevision();
111 int p1x = p1.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p1); 112 int p1x = p1.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p1);
112 int p2x = p2.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p2); 113 int p2x = p2.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p2);
113 int mx = repo.getManifest().getRevisionIndex(cset.getManifestRevision()); 114 int mx = repo.getManifest().getRevisionIndex(cset.getManifestRevision());