Mercurial > jhg
diff src/com/tmate/hgkit/ll/HgDataFile.java @ 37:e45e75e22523
Parse changesets from bundle's changelog group. Refactor Revlog to provide access to revision's raw content
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 14 Jan 2011 00:49:58 +0100 |
parents | 603806cd2dc6 |
children | e34f90b9ded1 |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/HgDataFile.java Thu Jan 13 23:31:39 2011 +0100 +++ b/src/com/tmate/hgkit/ll/HgDataFile.java Fri Jan 14 00:49:58 2011 +0100 @@ -41,25 +41,6 @@ return content(TIP); } - public byte[] content(Nodeid nodeid) { - int revision = content.findLocalRevisionNumber(nodeid); - return content(revision); - } - - /** - * @param revision - repo-local index of this file change (not a changelog revision number!) - */ - public byte[] content(int revision) { - final byte[][] dataPtr = new byte[1][]; - Revlog.Inspector insp = new Revlog.Inspector() { - public void next(int revisionNumber, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[] nodeid, byte[] data) { - dataPtr[0] = data; - } - }; - content.iterate(revision, revision, true, insp); - return dataPtr[0]; - } - public void history(Changeset.Inspector inspector) { if (!exists()) { throw new IllegalStateException("Can't get history of invalid repository file node");