Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A9EDD800 for ; Mon, 15 Oct 2012 09:31:25 +0000 (UTC) Received: (qmail 46400 invoked by uid 500); 15 Oct 2012 09:31:24 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 45852 invoked by uid 500); 15 Oct 2012 09:31:17 -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 45814 invoked by uid 99); 15 Oct 2012 09:31:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 09:31:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.109.42.8] (HELO einhorn.in-berlin.de) (192.109.42.8) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2012 09:31:09 +0000 X-Envelope-From: stsp@stsp.name Received: from ted.stsp.name (ted.stsp.name [217.197.84.34]) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id q9F9UkLZ010920 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 15 Oct 2012 11:30:46 +0200 Received: from ted.stsp.name (stsp@localhost [127.0.0.1]) by ted.stsp.name (8.14.5/8.14.3) with ESMTP id q9F9Uk7V030510; Mon, 15 Oct 2012 11:30:46 +0200 (CEST) Received: (from stsp@localhost) by ted.stsp.name (8.14.5/8.14.3/Submit) id q9F9UkdI003099; Mon, 15 Oct 2012 11:30:46 +0200 (CEST) Date: Mon, 15 Oct 2012 11:30:45 +0200 From: Stefan Sperling To: Jason Heeris Cc: users@subversion.apache.org Subject: Re: svndumpfilter does not exclude some files Message-ID: <20121015093045.GA31058@ted.stsp.name> Mail-Followup-To: Jason Heeris , users@subversion.apache.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Oct 15, 2012 at 12:56:40PM +0800, Jason Heeris wrote: > Okay, I managed to cheat a bit, so I'm sharing my workaround here. In > my includes file, I used the form: > > /specs*01234* > > ...and for the directories: > > /results/RST-0001 (v0.01) #001* > > ...and now everything seems to be expunged that should be. > > I have no idea why the original form doesn't work, maybe it's the "[" > characters or somesuch. Obviously you need to be a bit careful that > your patterns aren't too general; in my case those five-digit numbers > are a unique enough pattern to work for me. The square brackets are wildcard syntax saying "match any of the characters listed within the brackets". This is part of the syntax of the fnmatch() standard C function, see: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13_01 The pattern you originally tried to use: /specs/[01234] would match any of the following paths: /specs/0 /specs/1 /specs/2 /specs/3 /specs/4 But not this path, assuming '[01234]' is a literal part of the filename: /specs/[01234] product x spec.pdf The pattern you ended up using is a better way of matching those paths: /specs*01234* You should be able to quote the square brackets with a backslash to prevent them from causing wildcard matching. For instance, the following should match '/specs/[01234] product x spec.pdf': /specs/\[01234\]*pdf