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

Re: Problem with svndumpfilter

From: Alfred von Campe <alfred_at_von-campe.com>
Date: Thu, 7 Jun 2018 10:40:51 -0400

Thanks, Stefan. The path of least resistance for me is to use the script you pointed me to. However, it seems that the exclude feature is not yet implemented:

  try:
    if args[0] == 'include':
      sys.exit(analyze_logs(map(sanitize_path, targets)))
    elif args[0] == 'exclude':
      usage_and_exit("Feature not implemented")
    else:
      usage_and_exit("Valid subcommands are 'include' and 'exclude'")

Is there a more recent version of this script?

Alfred

> On Jun 7, 2018, at 3:11, Stefan Sperling <stsp_at_elego.de> wrote:
>
> On Thu, Jun 07, 2018 at 09:04:29AM +0200, Stefan Sperling wrote:
>> On Wed, Jun 06, 2018 at 03:12:20PM -0400, Alfred von Campe wrote:
>>> I’m trying to remove two sensitive directories from a repo so we can have a 3rd party work on it. I first dumped the entire repo, and now I’m trying to remove two directories from one particular branch. But svndumpfilter keeps failing as follows:
>>>
>>> $ svndumpfilter exclude branches/develop/dir1 branches/develop/dir2 < repo.dump > repo-nodir12.dump
>>> svndumpfilter: E200003: Invalid copy source path '/branches/develop/dir2'
>>>
>>> I’ve tried this both from a full incremental dump of the repo as well as a non-incremental dump of the repo starting from the revision that branches/develop was created. It always fails after the exact same revision.
>>>
>>> Is there anything I can do to work around this issue?
>>>
>>> Alfred
>>
>> Yes, you can update to 1.10 and use svnadmin dump --exclude
>> instead of using svndumpfilter.
>> See http://subversion.apache.org/docs/release-notes/1.10.html#dump-include-exclude
>>
>> An alternative that works with earlier releases is to set up svnsync
>> replication and configure authz access rules for the sync user which
>> forbid read access to the paths you want to exclude. svnsync will deal
>> with missing copy sources by translating copies into additions.
>
> I forgot to mention the most immediate solution:
> Add the relevant copy sources to your argument list for 'svnadumpfilter'.
> There is a script which can help with this:
> https://svn.apache.org/repos/asf/subversion/trunk/tools/server-side/svnpredumpfilter.py
Received on 2018-06-07 16:41:08 CEST

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

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