Mercurial > jhg
diff src/com/tmate/hgkit/ll/Changelog.java @ 48:e34f90b9ded1
Limit option for history/log
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 14 Jan 2011 23:22:20 +0100 |
parents | b01500fe2604 |
children | 9429c7bd1920 |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/Changelog.java Fri Jan 14 20:03:14 2011 +0100 +++ b/src/com/tmate/hgkit/ll/Changelog.java Fri Jan 14 23:22:20 2011 +0100 @@ -18,6 +18,10 @@ } public void all(final Changeset.Inspector inspector) { + range(0, content.revisionCount() - 1, inspector); + } + + public void range(int start, int end, final Changeset.Inspector inspector) { Revlog.Inspector i = new Revlog.Inspector() { public void next(int revisionNumber, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[] nodeid, byte[] data) { @@ -26,7 +30,7 @@ inspector.next(revisionNumber, Nodeid.fromBinary(nodeid, 0), cset); } }; - content.iterate(0, content.revisionCount() - 1, true, i); + content.iterate(start, end, true, i); } public List<Changeset> range(int start, int end) {