vcs-svn: Implement Prop-delta handling
commit6b01b67658e2905b550739f1aee56a00911ca13c
authorDavid Barr <david.barr@cordelta.com>
Sat, 20 Nov 2010 00:57:46 +0000 (19 18:57 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Nov 2010 22:53:59 +0000 (24 14:53 -0800)
tree15212576be03435d3ccd798720bd8dd156e3f595
parent6263c06d49abdf5e5defdf528c3ff67bf948ac9b
vcs-svn: Implement Prop-delta handling

The rules for what file is used as delta source for each file are not
documented in dump-load-format.txt.  Luckily, the Apache Software
Foundation repository has rich enough examples to figure out most of
the rules:

Node-action: replace implies the empty property set and empty text as
preimage for deltas.  Otherwise, if a copyfrom source is given, that
node is the preimage for deltas.  Lastly, if none of the above applies
and the node path exists in the current revision, then that version
forms the basis.

[jn: refactored, with tests]

Signed-off-by: David Barr <david.barr@cordelta.com>
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