comparison src/org/tmatesoft/hg/repo/Revlog.java @ 437:32184ddcf46d

Better argument names
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 17 Apr 2012 22:29:50 +0200
parents be697c3e951e
children 909306e412e2
comparison
equal deleted inserted replaced
436:9265f7f4b49b 437:32184ddcf46d
90 } 90 }
91 91
92 /** 92 /**
93 * Map revision index to unique revision identifier (nodeid). 93 * Map revision index to unique revision identifier (nodeid).
94 * 94 *
95 * @param revision index of the entry in this revlog, may be {@link HgRepository#TIP} 95 * @param revisionIndex index of the entry in this revlog, may be {@link HgRepository#TIP}
96 * @return revision nodeid of the entry 96 * @return revision nodeid of the entry
97 * 97 *
98 * @throws HgRuntimeException subclass thereof to indicate issues with the library. <em>Runtime exception</em> 98 * @throws HgRuntimeException subclass thereof to indicate issues with the library. <em>Runtime exception</em>
99 */ 99 */
100 public final Nodeid getRevision(int revision) throws HgRuntimeException { 100 public final Nodeid getRevision(int revisionIndex) throws HgRuntimeException {
101 // XXX cache nodeids? Rather, if context.getCache(this).getRevisionMap(create == false) != null, use it 101 // XXX cache nodeids? Rather, if context.getCache(this).getRevisionMap(create == false) != null, use it
102 return Nodeid.fromBinary(content.nodeid(revision), 0); 102 return Nodeid.fromBinary(content.nodeid(revisionIndex), 0);
103 } 103 }
104 104
105 /** 105 /**
106 * Effective alternative to map few revision indexes to corresponding nodeids at once. 106 * Effective alternative to map few revision indexes to corresponding nodeids at once.
107 * <p>Note, there are few aspects to be careful about when using this method<ul> 107 * <p>Note, there are few aspects to be careful about when using this method<ul>