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

[PATCH] Add '--drop-all-empty-revs' to svndumpfilter include/exclude

From: vijay <vijay_at_collab.net>
Date: Tue, 26 Feb 2013 15:16:52 +0530

Hi,

Recently, I had a chance to look at a dump file with lot of empty
revisions. The dump file was taken by syncing a sub-directory of a
remote repository using svnsync. I decided to remove all the empty
revisions from the dump file. But 'svndumpfilter include/exclude
--drop-empty-revs' was of no use, since it removes only the revisions
emptied by filtering process.

When I checked with the issue tracker, there is already one open
issue[1] for this problem. There was a mailing list discussion[2] which
proposes to change the behavior of '--drop-empty-revs' to drop *all* the
empty revisions instead of removing the ones emptied by filtering process.

As cmpilato said in the thread, the change in behavior would break our
compatibility promises and new command-line option
'--drop-all-empty-revs' would help to resolve this issue.

This patch introduces a new option '--drop-all-empty-revs' to
svndumpfilter include/exclude.

Attached the patch and log message. Please share your thoughts.

[1] http://subversion.tigris.org/issues/show_bug.cgi?id=3681
[2] http://svn.haxx.se/dev/archive-2010-07/0083.shtml

Thanks & Regards,
Vijayaguru

Received on 2013-02-26 10:47:36 CET

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.