diff src/com/tmate/hgkit/console/Log.java @ 50:f1db8610da62

Log to consult (placeholder, for now) class to find out associated tags
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 15 Jan 2011 01:41:49 +0100
parents 26e3eeaa3962
children 613c936d74e4
line wrap: on
line diff
--- a/src/com/tmate/hgkit/console/Log.java	Sat Jan 15 01:15:38 2011 +0100
+++ b/src/com/tmate/hgkit/console/Log.java	Sat Jan 15 01:41:49 2011 +0100
@@ -151,8 +151,17 @@
 			StringBuilder sb = new StringBuilder();
 			Formatter f = new Formatter(sb);
 			f.format("changeset:   %d:%s\n", revNumber, complete ? csetNodeid : csetNodeid.shortNotation());
-			if (revNumber == tip) {
-				sb.append("tag:        tip\n");
+			if (revNumber == tip || repo.getTags().isTagged(csetNodeid)) {
+				
+				sb.append("tag:         ");
+				for (String t : repo.getTags().tags(csetNodeid)) {
+					sb.append(t);
+					sb.append(' ');
+				}
+				if (revNumber == tip) {
+					sb.append("tip");
+				}
+				sb.append('\n');
 			}
 			if (complete) {
 				if (changelogWalker == null) {