comparison src/org/tmatesoft/hg/repo/HgChangelog.java @ 137:144d771ee73c

explicit op name instead math op to get last rev number
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 16 Feb 2011 22:16:05 +0100
parents 3959bffb14e9
children 8c9f729f4dfa
comparison
equal deleted inserted replaced
136:947bf231acbb 137:144d771ee73c
42 /*package-local*/ HgChangelog(HgRepository hgRepo, RevlogStream content) { 42 /*package-local*/ HgChangelog(HgRepository hgRepo, RevlogStream content) {
43 super(hgRepo, content); 43 super(hgRepo, content);
44 } 44 }
45 45
46 public void all(final HgChangelog.Inspector inspector) { 46 public void all(final HgChangelog.Inspector inspector) {
47 range(0, lastRevision(), inspector); 47 range(0, getLastRevision(), inspector);
48 } 48 }
49 49
50 public void range(int start, int end, final HgChangelog.Inspector inspector) { 50 public void range(int start, int end, final HgChangelog.Inspector inspector) {
51 RevlogStream.Inspector i = new RevlogStream.Inspector() { 51 RevlogStream.Inspector i = new RevlogStream.Inspector() {
52 52