comparison src/com/tmate/hgkit/ll/RevlogStream.java @ 53:a6f39e595b2b wrap-data-access

Merged changes from default branch
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sun, 16 Jan 2011 01:40:38 +0100
parents 9429c7bd1920 30bd38978846
children
comparison
equal deleted inserted replaced
51:9429c7bd1920 53:a6f39e595b2b
321 return rv; 321 return rv;
322 } 322 }
323 323
324 // @see http://mercurial.selenic.com/wiki/BundleFormat, in Changelog group description 324 // @see http://mercurial.selenic.com/wiki/BundleFormat, in Changelog group description
325 /*package-local*/ static class PatchRecord { // copy of struct frag from mpatch.c 325 /*package-local*/ static class PatchRecord { // copy of struct frag from mpatch.c
326 /*
327 Given there are pr1 and pr2:
328 pr1.start to pr1.end will be replaced with pr's data (of pr1.len)
329 pr1.end to pr2.start gets copied from base
330 */
326 int start, end, len; 331 int start, end, len;
327 byte[] data; 332 byte[] data;
328 333
329 // TODO consider PatchRecord that only records data position (absolute in data source), and acquires data as needed 334 // TODO consider PatchRecord that only records data position (absolute in data source), and acquires data as needed
330 private PatchRecord(int p1, int p2, int length, byte[] src) { 335 private PatchRecord(int p1, int p2, int length, byte[] src) {