comparison src/org/tmatesoft/hg/repo/Revlog.java @ 419:7f136a3fa671

Clean javadoc to fix obvious warnings
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 22 Mar 2012 21:36:41 +0100
parents 528b6780a8bd
children 9c9c442b5f2e
comparison
equal deleted inserted replaced
418:528b6780a8bd 419:7f136a3fa671
129 /** 129 /**
130 * Get local index of the specified revision. 130 * Get local index of the specified revision.
131 * If unsure, use {@link #isKnown(Nodeid)} to find out whether nodeid belongs to this revlog. 131 * If unsure, use {@link #isKnown(Nodeid)} to find out whether nodeid belongs to this revlog.
132 * 132 *
133 * For occasional queries, this method works with decent performance, despite its O(n/2) approach. 133 * For occasional queries, this method works with decent performance, despite its O(n/2) approach.
134 * Alternatively, if you need to perform multiple queries (e.g. at least 15-20), {@link RevisionMap} may come handy. 134 * Alternatively, if you need to perform multiple queries (e.g. at least 15-20), {@link Revlog.RevisionMap} may come handy.
135 * 135 *
136 * @param nid revision to look up 136 * @param nid revision to look up
137 * @return revision local index in this revlog 137 * @return revision local index in this revlog
138 * @throws HgInvalidRevisionException if supplied nodeid doesn't identify any revision from this revlog 138 * @throws HgInvalidRevisionException if supplied nodeid doesn't identify any revision from this revlog
139 * @throws HgInvalidControlFileException if access to revlog index/data entry failed 139 * @throws HgInvalidControlFileException if access to revlog index/data entry failed
160 160
161 /** 161 /**
162 * Note, {@link Nodeid#NULL} nodeid is not reported as known in any revlog. 162 * Note, {@link Nodeid#NULL} nodeid is not reported as known in any revlog.
163 * 163 *
164 * @param nodeid 164 * @param nodeid
165 * @return 165 * @return <code>true</code> if revision is part of this revlog
166 * @throws HgInvalidControlFileException if access to revlog index/data entry failed 166 * @throws HgInvalidControlFileException if access to revlog index/data entry failed
167 */ 167 */
168 public final boolean isKnown(Nodeid nodeid) throws HgInvalidControlFileException { 168 public final boolean isKnown(Nodeid nodeid) throws HgInvalidControlFileException {
169 final int rn = content.findRevisionIndex(nodeid); 169 final int rn = content.findRevisionIndex(nodeid);
170 if (BAD_REVISION == rn) { 170 if (BAD_REVISION == rn) {