diff src/org/tmatesoft/hg/internal/IntTuple.java @ 677:1c49c0cee540

Report line number at the first appearance, like 'hg annotate -l' does
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 18 Jul 2013 18:47:45 +0200
parents cce0387c6041
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/IntTuple.java	Thu Jul 18 18:03:51 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/IntTuple.java	Thu Jul 18 18:47:45 2013 +0200
@@ -53,4 +53,17 @@
 			throw new Error(ex);
 		}
 	}
+	
+	@Override
+	public String toString() {
+		StringBuilder sb = new StringBuilder();
+		sb.append('(');
+		for (int i = 0; i < size; i++) {
+			sb.append(at(i));
+			sb.append(", ");
+		}
+		sb.setLength(sb.length() - 2);
+		sb.append(')');
+		return sb.toString();
+	}
 }
\ No newline at end of file