comparison src/org/tmatesoft/hg/repo/HgChangelog.java @ 367:2fadf8695f8a

Use 'revision index' instead of the vague 'local revision number' concept in the API
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Dec 2011 15:37:27 +0100
parents 189dc6dc1c3e
children 73e875154afb
comparison
equal deleted inserted replaced
366:189dc6dc1c3e 367:2fadf8695f8a
101 /** 101 /**
102 * @throws HgInvalidRevisionException if supplied nodeid doesn't identify any revision from this revlog 102 * @throws HgInvalidRevisionException if supplied nodeid doesn't identify any revision from this revlog
103 * @throws HgInvalidControlFileException if access to revlog index/data entry failed 103 * @throws HgInvalidControlFileException if access to revlog index/data entry failed
104 */ 104 */
105 public RawChangeset changeset(Nodeid nid) throws HgInvalidControlFileException, HgInvalidRevisionException { 105 public RawChangeset changeset(Nodeid nid) throws HgInvalidControlFileException, HgInvalidRevisionException {
106 int x = getLocalRevision(nid); 106 int x = getRevisionIndex(nid);
107 return range(x, x).get(0); 107 return range(x, x).get(0);
108 } 108 }
109 109
110 public interface Inspector { 110 public interface Inspector {
111 // TODO describe whether cset is new instance each time 111 // TODO describe whether cset is new instance each time