Mercurial > hg4j
comparison src/com/tmate/hgkit/ll/RevlogStream.java @ 52:30bd38978846
brief explanation of patch record
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 16 Jan 2011 01:30:18 +0100 |
parents | 26e3eeaa3962 |
children | a6f39e595b2b |
comparison
equal
deleted
inserted
replaced
50:f1db8610da62 | 52:30bd38978846 |
---|---|
315 return rv; | 315 return rv; |
316 } | 316 } |
317 | 317 |
318 // @see http://mercurial.selenic.com/wiki/BundleFormat, in Changelog group description | 318 // @see http://mercurial.selenic.com/wiki/BundleFormat, in Changelog group description |
319 /*package-local*/ static class PatchRecord { // copy of struct frag from mpatch.c | 319 /*package-local*/ static class PatchRecord { // copy of struct frag from mpatch.c |
320 /* | |
321 Given there are pr1 and pr2: | |
322 pr1.start to pr1.end will be replaced with pr's data (of pr1.len) | |
323 pr1.end to pr2.start gets copied from base | |
324 */ | |
320 int start, end, len; | 325 int start, end, len; |
321 byte[] data; | 326 byte[] data; |
322 | 327 |
323 // TODO consider PatchRecord that only records data position (absolute in data source), and acquires data as needed | 328 // TODO consider PatchRecord that only records data position (absolute in data source), and acquires data as needed |
324 private PatchRecord(int p1, int p2, int length, byte[] src) { | 329 private PatchRecord(int p1, int p2, int length, byte[] src) { |