diff 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
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java	Fri Dec 16 04:43:18 2011 +0100
+++ b/cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java	Fri Dec 16 15:37:27 2011 +0100
@@ -108,9 +108,9 @@
 		if (complete) {
 			Nodeid p1 = cset.getFirstParentRevision();
 			Nodeid p2 = cset.getSecondParentRevision();
-			int p1x = p1.isNull() ? -1 : repo.getChangelog().getLocalRevision(p1);
-			int p2x = p2.isNull() ? -1 : repo.getChangelog().getLocalRevision(p2);
-			int mx = repo.getManifest().getLocalRevision(cset.getManifestRevision());
+			int p1x = p1.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p1);
+			int p2x = p2.isNull() ? -1 : repo.getChangelog().getRevisionIndex(p2);
+			int mx = repo.getManifest().getRevisionIndex(cset.getManifestRevision());
 			f.format("parent:      %d:%s\nparent:      %d:%s\nmanifest:    %d:%s\n", p1x, p1, p2x, p2, mx, cset.getManifestRevision());
 		}
 		f.format("user:        %s\ndate:        %s\n", cset.getUser(), cset.getDate().toString());