summaryrefslogtreecommitdiff
path: root/base85.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-10-13 09:35:59 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2011-03-28 03:51:00 (GMT)
commitfc4ae43b2cbd53da6ac2a0047fb4e53175921696 (patch)
treea957c8604baf066e5cc5eb0c8f3f085ee1d10bcf /base85.c
parentbcd254621f9a98794cdc32906db10af7135824c4 (diff)
downloadgit-fc4ae43b2cbd53da6ac2a0047fb4e53175921696.zip
git-fc4ae43b2cbd53da6ac2a0047fb4e53175921696.tar.gz
git-fc4ae43b2cbd53da6ac2a0047fb4e53175921696.tar.bz2
vcs-svn: read inline data from deltas
Each window of an svndiff0-format delta includes a section for novel text to be copied to the postimage (in the order it appears in the window, possibly interspersed with other data). Slurp in this data when encountering it. It is not actually necessary to do so --- it would be just as easy to copy from delta to output as part of interpreting the relevant instructions --- but this way, the code that interprets svndiff0 instructions can proceed very quickly because it does not require I/O. Subversion's svndiff0 parser rejects deltas that do not consume all the novel text that was provided. Omit that check for now so we can test the new functionality right away, rather than waiting to learn instructions that consume data. Do check for truncated data sections. Subversion's parser rejects deltas that end in the middle of a declared novel-text section, so it should be safe for us to reject them, too. 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 'base85.c')
0 files changed, 0 insertions, 0 deletions