Mercurial > jhg
diff src/org/tmatesoft/hg/internal/FileHistory.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 | 507602cb4fb3 |
children | 72fc7774b87e |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileHistory.java Tue May 21 20:17:33 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/FileHistory.java Wed May 22 15:52:31 2013 +0200 @@ -25,6 +25,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; /** * History of a file, with copy/renames, and corresponding revision information. @@ -56,7 +57,7 @@ return csetTo; } - public void build() { + public void build() throws HgRuntimeException { assert fileCompleteHistory.isEmpty(); HgDataFile currentFile = df; final int changelogRevIndexEnd = csetTo;