vcs-svn: allow import of > 4GiB files
commit2d54b9ea8b99df7b448f64a7847f7f3879964e12
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 2 Feb 2012 10:19:35 +0000 (2 04:19 -0600)
committerJonathan Nieder <jrnieder@gmail.com>
Thu, 2 Feb 2012 11:33:13 +0000 (2 05:33 -0600)
treec169a5c91beda46183b1f51c13c9038b2dc8de2b
parentce8ebcdaf31dd56955635808bba1a6df50601563
vcs-svn: allow import of > 4GiB files

There is no reason in principle that an svn-format dump would not
be able to represent a file whose length does not fit in a 32-bit
integer.  Use off_t consistently (instead of uint32_t) to represent
file lengths so we can handle that.

Most of our code is already ready to do that without this patch and
already passes values of type off_t around.  The type mismatch due to
stragglers was noticed with gcc -Wtype-limits.

Inspired-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
vcs-svn/fast_export.c
vcs-svn/fast_export.h
vcs-svn/svndump.c