[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Add '--include' and '--exclude' options to 'svnadmin dump'

From: Julian Foad <julianfoad_at_apache.org>
Date: Fri, 13 Oct 2017 10:15:28 +0100

maxin wrote:
> Thanks for the prompt response! I just compiled r1812050 and tested with my
> own repo, however, somehow the svndumpfilter command cannot remove the
> 'empty' revisions from the filtered dump file....

Please report a small test case that demonstrates the problem, with the
exact commands. A script that starts with "svnadmin create repo" and
continues with "svn mkdir ..." and "svnadmin dump ..." and
"svndumpfilter ..." would be ideal.

Without knowing what commands you used, my first guess is you used
something like "svndumpfilter include / --drop-empty-revs".

> $ svndumpfilter include --help
> [...]
> --drop-empty-revs : Remove revisions emptied by filtering.
> --drop-all-empty-revs : Remove all empty revisions found in dumpstream
> except revision 0.

--drop-empty-revs only removes revisions that *svndumpfilter* makes
empty, not revisions that were already empty before svndumpfilter
received them. In that case maybe you want --drop-all-empty-revs
instead. Is that it?

- Julian
Received on 2017-10-13 11:15:32 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.