diff src/org/tmatesoft/hg/util/Pair.java @ 388:b015f3918120

Work on FIXME: correct HgDataFile#workingCopy with tests; BasicSessionContext with property override; platform-specific options to internals
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 15 Feb 2012 22:57:56 +0100
parents fd845a53f53d
children 5311e041d2dd
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/Pair.java	Mon Feb 13 15:11:27 2012 +0100
+++ b/src/org/tmatesoft/hg/util/Pair.java	Wed Feb 15 22:57:56 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
@@ -46,5 +46,16 @@
 	public boolean hasSecond() {
 		return value2 != null;
 	}
+
+	@Override
+	public String toString() {
+		StringBuilder sb = new StringBuilder();
+		sb.append('<');
+		sb.append(first());
+		sb.append(':');
+		sb.append(second());
+		sb.append('>');
+		return sb.toString();
+	}
 }