]> git.ipfire.org Git - thirdparty/git.git/commit
vcs-svn: Error out for v3 dumps
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 18 Nov 2010 05:02:48 +0000 (23:02 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 22:48:52 +0000 (14:48 -0800)
commitb3e5bce1aa88721dd4565089960997836ce66add
treef116da9e6e8987c1587fa0f87c576579f39035ff
parent03276d94bcdb7d463a029936933898948c0669ac
vcs-svn: Error out for v3 dumps

By ignoring the Text-Delta and Prop-Delta node fields, current svn-fe
happily mistakes deltas for full text and instead of cleanly erroring
out, it produces a valid but semantically bogus fast-import stream
when fed a dump file in the modern "svnadmin dump --deltas" format.

Dump file parsers are supposed to ignore header fields they don't
understand (to allow for backward-compatible extensions), but they are
also supposed to check the SVN-fs-dump-format-version header to
prevent misinterpretation of non backward-compatible extensions.
Do so.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9010-svn-fe.sh
vcs-svn/svndump.c