diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-10-13 04:30:37 -0500 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2011-03-27 22:50:01 -0500 |
commit | bcd254621f9a98794cdc32906db10af7135824c4 (patch) | |
tree | dd511d4436cdb4e0c4941654d8cfd96367f1ed72 /t/t6120-describe.sh | |
parent | vcs-svn: parse svndiff0 window header (diff) | |
download | tgif-bcd254621f9a98794cdc32906db10af7135824c4.tar.xz |
vcs-svn: read the preimage when applying deltas
The source view offset heading each svndiff0 window represents a
number of bytes past the beginning of the preimage. Together with the
source view length, it dictates to the delta applier what portion of
the preimage instructions will refer to. Read that portion right away
using the sliding window code.
Maybe some day we will use mmap to read data more lazily.
Subversion's implementation tolerates source view offsets pointing
past the end of the preimage file but we do not, for simplicity.
This does not teach the delta applier to read instructions or copy
data from the source view. Deltas that could produce nonempty output
will still be rejected.
Improved-by: Ramkumar Ramachandra <artagnon@gmail.com>
Improved-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Ramkumar Ramachandra <artagnon@gmail.com>
Diffstat (limited to 't/t6120-describe.sh')
0 files changed, 0 insertions, 0 deletions