From users-return-27204-archive-asf-public=cust-asf.ponee.io@subversion.apache.org Thu Jun 7 16:41:04 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 A19A0180663 for ; Thu, 7 Jun 2018 16:41:03 +0200 (CEST) Received: (qmail 728 invoked by uid 500); 7 Jun 2018 14:41:02 -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 718 invoked by uid 99); 7 Jun 2018 14:41:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2018 14:41:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 53D03CA02F for ; Thu, 7 Jun 2018 14:41:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1 X-Spam-Level: * X-Spam-Status: No, score=1 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MxGbO6NnGAjk for ; Thu, 7 Jun 2018 14:41:00 +0000 (UTC) Received: from smtp125.ord1d.emailsrvr.com (smtp125.ord1d.emailsrvr.com [184.106.54.125]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CBA4A5F197 for ; Thu, 7 Jun 2018 14:40:59 +0000 (UTC) Received: from smtp24.relay.ord1d.emailsrvr.com (localhost [127.0.0.1]) by smtp24.relay.ord1d.emailsrvr.com (SMTP Server) with ESMTP id 67D55A023C; Thu, 7 Jun 2018 10:40:53 -0400 (EDT) X-Auth-ID: alfred@von-campe.com Received: by smtp24.relay.ord1d.emailsrvr.com (Authenticated sender: alfred-AT-von-campe.com) with ESMTPSA id 368D4A0204; Thu, 7 Jun 2018 10:40:53 -0400 (EDT) X-Sender-Id: alfred@von-campe.com Received: from alfred.bose.com ([UNAVAILABLE]. [139.68.191.50]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:25 (trex/5.7.12); Thu, 07 Jun 2018 10:40:53 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Problem with svndumpfilter From: Alfred von Campe In-Reply-To: <20180607071155.GB14061@byrne.stsp.name> Date: Thu, 7 Jun 2018 10:40:51 -0400 Cc: "userssubversion.apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E8FC09C-25C1-4F0E-89AE-F7672232B1D4@von-campe.com> <20180607070429.GA14061@byrne.stsp.name> <20180607071155.GB14061@byrne.stsp.name> To: Stefan Sperling X-Mailer: Apple Mail (2.3445.6.18) 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] =3D=3D 'include': sys.exit(analyze_logs(map(sanitize_path, targets))) elif args[0] =3D=3D '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 wrote: >=20 > 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=E2=80=99m 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=E2=80=99m trying to remove two directories from one particular = branch. But svndumpfilter keeps failing as follows: >>>=20 >>> $ svndumpfilter exclude branches/develop/dir1 branches/develop/dir2 = < repo.dump > repo-nodir12.dump >>> svndumpfilter: E200003: Invalid copy source path = '/branches/develop/dir2' >>>=20 >>> I=E2=80=99ve 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. >>>=20 >>> Is there anything I can do to work around this issue? >>>=20 >>> Alfred >>=20 >> 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-exc= lude >>=20 >> 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. >=20 > 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/svnpre= dumpfilter.py