Mercurial > hg4j
comparison src/com/tmate/hgkit/ll/RevlogStream.java @ 35:6061aa826a9e
Complete parsing of the bundle format
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 13 Jan 2011 20:02:21 +0100 |
parents | 565ce0835674 |
children | 205f9b59b400 |
comparison
equal
deleted
inserted
replaced
34:51bc56c0addd | 35:6061aa826a9e |
---|---|
302 byte[] rv = new byte[destIndex]; | 302 byte[] rv = new byte[destIndex]; |
303 System.arraycopy(tempBuf, 0, rv, 0, destIndex); | 303 System.arraycopy(tempBuf, 0, rv, 0, destIndex); |
304 return rv; | 304 return rv; |
305 } | 305 } |
306 | 306 |
307 // @see http://mercurial.selenic.com/wiki/BundleFormat, in Changelog group description | |
307 static class PatchRecord { // copy of struct frag from mpatch.c | 308 static class PatchRecord { // copy of struct frag from mpatch.c |
308 int start, end, len; | 309 int start, end, len; |
309 byte[] data; | 310 byte[] data; |
310 | 311 |
311 public PatchRecord(int p1, int p2, int len, byte[] src, int srcOffset) { | 312 public PatchRecord(int p1, int p2, int len, byte[] src, int srcOffset) { |