Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgRepository.java @ 145:acc6151b1b7a
toString for friendly debug
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 18 Feb 2011 04:53:34 +0100 |
parents | 37a34044e6bd |
children | 1a7a9a20e1f9 |
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;