diff src/org/tmatesoft/hg/core/HgLogCommand.java @ 457:d78cb5ca3053

Get rid of ambiguity in method name
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 18 Jun 2012 17:06:42 +0200
parents 909306e412e2
children b3c16d1aede0
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgLogCommand.java	Mon Jun 18 16:54:00 2012 +0200
+++ b/src/org/tmatesoft/hg/core/HgLogCommand.java	Mon Jun 18 17:06:42 2012 +0200
@@ -37,6 +37,7 @@
 import org.tmatesoft.hg.repo.HgDataFile;
 import org.tmatesoft.hg.repo.HgInternals;
 import org.tmatesoft.hg.repo.HgInvalidControlFileException;
+import org.tmatesoft.hg.repo.HgInvalidRevisionException;
 import org.tmatesoft.hg.repo.HgInvalidStateException;
 import org.tmatesoft.hg.repo.HgParentChildMap;
 import org.tmatesoft.hg.repo.HgRepository;
@@ -168,7 +169,7 @@
 		try {
 			final int csetRevIndex = repo.getChangelog().getRevisionIndex(nid);
 			return range(csetRevIndex, csetRevIndex);
-		} catch (HgRuntimeException ex) {
+		} catch (HgInvalidRevisionException ex) {
 			throw new HgBadArgumentException("Can't find revision", ex).setRevision(nid);
 		}
 	}