When using the --drop-empty-revs and --renumber-revs command line
options to svndumpfilter, the remapped revisions may be incorrectly
calculated, leading to an invalid dump file. Currently the code does
not remap the revised revision for a removed revision to the previous
revision, leading to broken dump files that copy files from the
previous revision.
I have a patch for this in the works.
Below is a a recipe.
Blair
#!/bin/sh -e
svnadmin create repos1
svn co file://`pwd`/repos1 wc1
cd wc1
cp /etc/group /etc/passwd .
svn add group passwd
svn ci -m ''
svn update
svn rm passwd
svn ci -m ''
svn update
svn cp group group.1
svn ci -m ''
svn update
cd ..
svnadmin dump repos1 > dump1
svndumpfilter include \
--drop-empty-revs \
--renumber-revs group < dump1 > dump1.filtered
svnadmin create repos2
svnadmin load repos2 < dump1.filtered