diff cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java @ 423:9c9c442b5f2e

Major refactoring of exception handling. Low-level API uses RuntimeExceptions, while checked are left for higher level
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 23 Mar 2012 22:51:18 +0100
parents 2fadf8695f8a
children 31a89587eb04
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java	Fri Mar 23 21:26:01 2012 +0100
+++ b/cmdline/org/tmatesoft/hg/console/ChangesetDumpHandler.java	Fri Mar 23 22:51:18 2012 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 TMate Software Ltd
+ * Copyright (c) 2011-2012 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -93,14 +93,14 @@
 		StringBuilder sb = new StringBuilder();
 		Formatter f = new Formatter(sb);
 		final Nodeid csetNodeid = cset.getNodeid();
-		f.format("changeset:   %d:%s\n", cset.getRevision(), complete ? csetNodeid : csetNodeid.shortNotation());
-		if (cset.getRevision() == tip || repo.getTags().isTagged(csetNodeid)) {
+		f.format("changeset:   %d:%s\n", cset.getRevisionIndex(), complete ? csetNodeid : csetNodeid.shortNotation());
+		if (cset.getRevisionIndex() == tip || repo.getTags().isTagged(csetNodeid)) {
 			sb.append("tag:         ");
 			for (String t : repo.getTags().tags(csetNodeid)) {
 				sb.append(t);
 				sb.append(' ');
 			}
-			if (cset.getRevision() == tip) {
+			if (cset.getRevisionIndex() == tip) {
 				sb.append("tip");
 			}
 			sb.append('\n');