Mercurial > jhg
diff src/org/tmatesoft/hg/internal/FileRevisionHistoryChunk.java @ 628:6526d8adbc0f
Explicit HgRuntimeException to facilitate easy switch from runtime to checked exceptions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 22 May 2013 15:52:31 +0200 |
parents | b4948b159ab1 |
children | 72fc7774b87e |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileRevisionHistoryChunk.java Tue May 21 20:17:33 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/FileRevisionHistoryChunk.java Wed May 22 15:52:31 2013 +0200 @@ -28,6 +28,7 @@ import org.tmatesoft.hg.core.Nodeid; import org.tmatesoft.hg.repo.HgDataFile; import org.tmatesoft.hg.repo.HgRepository; +import org.tmatesoft.hg.repo.HgRuntimeException; /** * Piece of file history, identified by path, limited to file revisions from range [chop..init] of changesets, @@ -73,7 +74,7 @@ return csetRangeEnd; } - public void init(int changelogRevisionIndex) { + public void init(int changelogRevisionIndex) throws HgRuntimeException { csetRangeEnd = changelogRevisionIndex; // XXX df.indexWalk(0, fileRevIndex, ) might be more effective Nodeid fileRev = df.getRepo().getManifest().getFileRevision(changelogRevisionIndex, df.getPath());