vcs-svn: let deltas use data from postimage
commitd3f131b57ec0e69a37bca882fa6bf39aa4c1c387
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 13 Oct 2010 09:50:07 +0000 (13 04:50 -0500)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 28 Mar 2011 04:28:27 +0000 (27 23:28 -0500)
treebfef23ef1c2f350eb8c1c813d2b2fa51f7884b4b
parent4c9b93ed7644a7a7c72bdd8105d88a9ebb8e3e74
vcs-svn: let deltas use data from postimage

The copyfrom_target instruction copies appends data that is already
present in the current output view to the end of output.  (The offset
argument is relative to the beginning of output produced in the
current window.)

The region copied is allowed to run past the end of the existing
output.  To support that case, copy one character at a time rather
than calling memcpy or memmove.  This allows copyfrom_target to be
used once to repeat a string many times.  For example:

COPYFROM_DATA 2
COPYFROM_OUTPUT 10, 0
DATA "ab"

would produce the output "ababababababababababab".

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Ramkumar Ramachandra <artagnon@gmail.com>
t/t9011-svn-da.sh
vcs-svn/svndiff.c