Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
627:5153eb73b18d | 628:6526d8adbc0f |
---|---|
23 | 23 |
24 import org.tmatesoft.hg.core.HgIterateDirection; | 24 import org.tmatesoft.hg.core.HgIterateDirection; |
25 import org.tmatesoft.hg.core.Nodeid; | 25 import org.tmatesoft.hg.core.Nodeid; |
26 import org.tmatesoft.hg.repo.HgDataFile; | 26 import org.tmatesoft.hg.repo.HgDataFile; |
27 import org.tmatesoft.hg.repo.HgRepository; | 27 import org.tmatesoft.hg.repo.HgRepository; |
28 import org.tmatesoft.hg.repo.HgRuntimeException; | |
28 | 29 |
29 /** | 30 /** |
30 * History of a file, with copy/renames, and corresponding revision information. | 31 * History of a file, with copy/renames, and corresponding revision information. |
31 * Facility for file history iteration. | 32 * Facility for file history iteration. |
32 * | 33 * |
54 | 55 |
55 public int getEndChangeset() { | 56 public int getEndChangeset() { |
56 return csetTo; | 57 return csetTo; |
57 } | 58 } |
58 | 59 |
59 public void build() { | 60 public void build() throws HgRuntimeException { |
60 assert fileCompleteHistory.isEmpty(); | 61 assert fileCompleteHistory.isEmpty(); |
61 HgDataFile currentFile = df; | 62 HgDataFile currentFile = df; |
62 final int changelogRevIndexEnd = csetTo; | 63 final int changelogRevIndexEnd = csetTo; |
63 final int changelogRevIndexStart = csetFrom; | 64 final int changelogRevIndexStart = csetFrom; |
64 int fileLastClogRevIndex = changelogRevIndexEnd; | 65 int fileLastClogRevIndex = changelogRevIndexEnd; |