# HG changeset patch # User Artem Tikhomirov # Date 1334694590 -7200 # Node ID 32184ddcf46dd7a53675aa0036de765509e39f87 # Parent 9265f7f4b49b484c68396da8ce7b1c948598cb1f Better argument names diff -r 9265f7f4b49b -r 32184ddcf46d src/org/tmatesoft/hg/repo/HgDataFile.java --- 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. Runtime exception */ - public int getChangesetRevisionIndex(int revision) throws HgRuntimeException { - return content.linkRevision(revision); + public int getChangesetRevisionIndex(int fileRevisionIndex) throws HgRuntimeException { + return content.linkRevision(fileRevisionIndex); } /** diff -r 9265f7f4b49b -r 32184ddcf46d src/org/tmatesoft/hg/repo/Revlog.java --- 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. Runtime exception */ - 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); } /**