diff src/org/tmatesoft/hg/repo/Revlog.java @ 385:6150555eb41d

HgInvalidRevisionException for svn imported repositories (changeset 0 references nullid manifest)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 13 Feb 2012 14:19:36 +0100
parents 8107b95f4280
children b015f3918120
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/Revlog.java	Mon Feb 13 13:20:06 2012 +0100
+++ b/src/org/tmatesoft/hg/repo/Revlog.java	Mon Feb 13 14:19:36 2012 +0100
@@ -140,7 +140,7 @@
 	public final int getRevisionIndex(Nodeid nid) throws HgInvalidControlFileException, HgInvalidRevisionException {
 		int revision = content.findRevisionIndex(nid);
 		if (revision == BAD_REVISION) {
-			throw new HgInvalidRevisionException(String.format("Bad revision of %s", this /*XXX HgDataFile.getPath might be more suitable here*/), nid, null);
+			throw new HgInvalidRevisionException(String.format("Can't find revision %s in %s", nid.shortNotation(), this /*FIXME HgDataFile.getPath might be more suitable here*/), nid, null);
 		}
 		return revision;
 	}