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

Re: Exclude/Ignore pattern

From: Milen A. Radev <mradev_at_gmail.com>
Date: 2005-10-13 01:00:49 CEST

On 12/10/05, Simon Large <simon@skirridsystems.co.uk> wrote:
> Stuart Celarier wrote:
> >>>Changing the value in the General Settings dialog does not change the
> >
> > global-ignores in the Subversion config file, so that's not it. There is
> > something more going on. Could you please shed some light, so I know
> > what question to ask on the Subversion mailing lists.
> >
> >
> >>Looks like TSVN is using a registry value.
> >
> >
> > Okay, so how does TSVN use this registry value and where does that show
> > up in Subversion (or does it)? My objective is still to learn what the
> > syntax is for the pattern.
>
> Digging around a little, the SVN book says that it is a filename
> globbing pattern (rather than a regex) as used in *nix. However, there
> is no single definition of globbing, so it is not clear which meta
> characters are supported. I would assume the minimum.
>
> * = zero or more occurrences of any char.
> ? = 1 occurrence of any char.
> [QRSa-z] = single occurrence of any of the specific listed chars,
> or within a range shown using the '-' sign.
> \ = escape for a meta chars.
>
> Pattern matching is case sensitive, and if directory names are present
> in a path, they are included in the matching, so pattern 'Fred.*' will
> match 'Fred.c' but not 'subdir/Fred.c'. This is significant if you add a
> folder containing some files that you want to be ignored.
>
> Would anyone like to add to that definition?

After a brief walk over the Subversion source I found that probably
the "apr_fnmatch" function is responsible for putting those patterns
in action. Obviously it is part of APR.
Unfortunatelly its docs
(http://apr.apache.org/docs/apr/group__apr__fnmatch.html) are not very
helpful. But the source is -
http://svn.apache.org/viewcvs.cgi/apr/apr/trunk/strings/apr_fnmatch.c?view=markup
.

This is the explaination about the compatibility:
"...
/*
 * Function fnmatch() as specified in POSIX 1003.2-1992, section B.6.
 * Compares a filename or pathname to a pattern.
 */
..."

Anyone with access to that document?

--
Milen A. Radev
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Oct 13 01:01:08 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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