changeset 145:acc6151b1b7a

toString for friendly debug
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 18 Feb 2011 04:53:34 +0100
parents 44185c4a850c
children 8c9f729f4dfa
files src/org/tmatesoft/hg/repo/HgRepository.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java	Fri Feb 18 01:10:08 2011 +0100
+++ b/src/org/tmatesoft/hg/repo/HgRepository.java	Fri Feb 18 04:53:34 2011 +0100
@@ -105,6 +105,10 @@
 		repoPathHelper = impl.buildRepositoryFilesHelper();
 	}
 
+	@Override
+	public String toString() {
+		return getClass().getSimpleName() + "[" + getLocation() + (isInvalid() ? "(BAD)" : "") + "]";
+	}                         
 	
 	public String getLocation() {
 		return repoLocation;