# HG changeset patch # User Artem Tikhomirov # Date 1298001214 -3600 # Node ID acc6151b1b7ad0b9a0b90daae8d49a449f640af0 # Parent 44185c4a850ca9ccb41ca15ddb4902cd521cc182 toString for friendly debug diff -r 44185c4a850c -r acc6151b1b7a src/org/tmatesoft/hg/repo/HgRepository.java --- 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;