Mercurial > hg4j
diff src/com/tmate/hgkit/ll/RevlogIndexStreamAccess.java @ 9:d6d2a630f4a6
Access to underlaying file data wrapped into own Access object, implemented with FileChannel and ByteBuffer
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 25 Dec 2010 04:45:59 +0100 |
parents | dbd663faec1f |
children |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/RevlogIndexStreamAccess.java Thu Dec 23 01:31:40 2010 +0100 +++ b/src/com/tmate/hgkit/ll/RevlogIndexStreamAccess.java Sat Dec 25 04:45:59 2010 +0100 @@ -24,7 +24,7 @@ void readRevlogV0Record() throws IOException { - DataInput di = stream.getIndexStream(); + DataInput di = null; //FIXME stream.getIndexStream(); int offset = di.readInt(); int compressedLen = di.readInt(); int baseRevision = di.readInt(); @@ -42,7 +42,7 @@ // another subclass? void readRevlogNGRecord() throws IOException { - DataInput di = stream.getIndexStream(); + DataInput di = null; //FIXME stream.getIndexStream(); long l = di.readLong(); long offset = l >>> 16; int flags = (int) (l & 0X0FFFF);