Mercurial > hg4j
changeset 437:32184ddcf46d
Better argument names
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 17 Apr 2012 22:29:50 +0200 |
parents | 9265f7f4b49b |
children | 0d128e09d70f |
files | src/org/tmatesoft/hg/repo/HgDataFile.java src/org/tmatesoft/hg/repo/Revlog.java |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgDataFile.java Tue Apr 17 22:29:25 2012 +0200 +++ b/src/org/tmatesoft/hg/repo/HgDataFile.java Tue Apr 17 22:29:50 2012 +0200 @@ -362,8 +362,8 @@ * @return changeset revision index * @throws HgRuntimeException subclass thereof to indicate issues with the library. <em>Runtime exception</em> */ - public int getChangesetRevisionIndex(int revision) throws HgRuntimeException { - return content.linkRevision(revision); + public int getChangesetRevisionIndex(int fileRevisionIndex) throws HgRuntimeException { + return content.linkRevision(fileRevisionIndex); } /**
--- a/src/org/tmatesoft/hg/repo/Revlog.java Tue Apr 17 22:29:25 2012 +0200 +++ b/src/org/tmatesoft/hg/repo/Revlog.java Tue Apr 17 22:29:50 2012 +0200 @@ -92,14 +92,14 @@ /** * Map revision index to unique revision identifier (nodeid). * - * @param revision index of the entry in this revlog, may be {@link HgRepository#TIP} + * @param revisionIndex index of the entry in this revlog, may be {@link HgRepository#TIP} * @return revision nodeid of the entry * * @throws HgRuntimeException subclass thereof to indicate issues with the library. <em>Runtime exception</em> */ - public final Nodeid getRevision(int revision) throws HgRuntimeException { + public final Nodeid getRevision(int revisionIndex) throws HgRuntimeException { // XXX cache nodeids? Rather, if context.getCache(this).getRevisionMap(create == false) != null, use it - return Nodeid.fromBinary(content.nodeid(revision), 0); + return Nodeid.fromBinary(content.nodeid(revisionIndex), 0); } /**