diff src/org/tmatesoft/hg/core/HgFileRevision.java @ 519:934037edbea0

Few toString() implementations to ease debug
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 20 Dec 2012 20:21:59 +0100
parents 0d5e1ea7955e
children 6526d8adbc0f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgFileRevision.java	Thu Dec 20 19:55:45 2012 +0100
+++ b/src/org/tmatesoft/hg/core/HgFileRevision.java	Thu Dec 20 20:21:59 2012 +0100
@@ -150,6 +150,11 @@
 		int revisionIndex = fn.getRevisionIndex(revision);
 		fn.contentWithFilters(revisionIndex, sink);
 	}
+	
+	@Override
+	public String toString() {
+		return String.format("HgFileRevision(%s, %s)", getPath().toString(), revision.shortNotation());
+	}
 
 	private void checkCopy() throws HgException {
 		HgDataFile fn = repo.getFileNode(path);