Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgRevisionMap.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 | be697c3e951e |
children | 6334b0267103 |
comparison
equal
deleted
inserted
replaced
627:5153eb73b18d | 628:6526d8adbc0f |
---|---|
83 } | 83 } |
84 | 84 |
85 /** | 85 /** |
86 * @return <code>this</code> for convenience. | 86 * @return <code>this</code> for convenience. |
87 */ | 87 */ |
88 public HgRevisionMap<T> init(/*XXX Pool<Nodeid> to reuse nodeids, if possible. */) throws HgInvalidControlFileException{ | 88 public HgRevisionMap<T> init(/*XXX Pool<Nodeid> to reuse nodeids, if possible. */) throws HgRuntimeException { |
89 // XXX HgRepository.register((RepoChangeListener) this); // listen to changes in repo, re-init if needed? | 89 // XXX HgRepository.register((RepoChangeListener) this); // listen to changes in repo, re-init if needed? |
90 final int revisionCount = revlog.getRevisionCount(); | 90 final int revisionCount = revlog.getRevisionCount(); |
91 sequential = new Nodeid[revisionCount]; | 91 sequential = new Nodeid[revisionCount]; |
92 sorted = new Nodeid[revisionCount]; | 92 sorted = new Nodeid[revisionCount]; |
93 revlog.indexWalk(0, TIP, this); | 93 revlog.indexWalk(0, TIP, this); |