Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgChangelog.java @ 135:3959bffb14e9
explicit op name instead math op to get last rev number
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 22:00:39 +0100 |
parents | 645829962785 |
children | 144d771ee73c |
comparison
equal
deleted
inserted
replaced
134:afac8ddc5dd2 | 135:3959bffb14e9 |
---|---|
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, content.revisionCount() - 1, inspector); | 47 range(0, lastRevision(), 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 |