From users-return-27198-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Thu Jun 7 09:12:08 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D193D180663 for ; Thu, 7 Jun 2018 09:12:07 +0200 (CEST) Received: (qmail 53621 invoked by uid 500); 7 Jun 2018 07:12:01 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 53611 invoked by uid 99); 7 Jun 2018 07:12:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2018 07:12:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C36AF1A000F for ; Thu, 7 Jun 2018 07:12:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4yBf85DGLzox for ; Thu, 7 Jun 2018 07:11:58 +0000 (UTC) Received: from einhorn-mail.in-berlin.de (einhorn-mail.in-berlin.de [217.197.80.20]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 647785F41A for ; Thu, 7 Jun 2018 07:11:58 +0000 (UTC) X-Envelope-From: stsp@elego.de Received: from byrne.stsp.name (byrne.stsp.name [217.197.84.41]) by einhorn.in-berlin.de with ESMTP id w577BuQW004731 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Jun 2018 09:11:56 +0200 Received: from localhost (byrne.stsp.name [local]) by byrne.stsp.name (OpenSMTPD) with ESMTPA id e64cdc8a; Thu, 7 Jun 2018 09:11:56 +0200 (CEST) Date: Thu, 7 Jun 2018 09:11:56 +0200 From: Stefan Sperling To: Alfred von Campe , "userssubversion.apache.org" Subject: Re: Problem with svndumpfilter Message-ID: <20180607071155.GB14061@byrne.stsp.name> Mail-Followup-To: Alfred von Campe , "userssubversion.apache.org" References: <4E8FC09C-25C1-4F0E-89AE-F7672232B1D4@von-campe.com> <20180607070429.GA14061@byrne.stsp.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180607070429.GA14061@byrne.stsp.name> User-Agent: Mutt/1.9.4 (2018-02-28) 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