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

RE: ignoring filenames with spaces

From: Rob Hubbard <rob.hubbard_at_softel.co.uk>
Date: Wed, 29 Oct 2008 14:05:02 -0000

> Now, obviously that doesn't work, as the space is a separator
> (and, in this case, so the "*" causes every unversioned file
> to be ignored).
> I have tried the following variants (inspired by globbing and other
> syntax)
> but none of these seems to work (on Windoze):
>
> [miscellany]
> global-ignores =
> "Copy of *"
> Copy[ ]of[ ]*
> Copy%20of%20*
> Copy[\s]of[\s]*
> Copy\ of\ *

I also tried
         Copy[[:space:]]of[[:space:]]*
that too does not work.

Thus it looks as though SVN does not quite implement full
globbing syntax.

> An "improvement" is to use an inverted character class:
>
> [miscellany]
> global-ignores =
> Copy[^a-zA-Z0-9_]of[^a-zA-Z0-9_]*
>
> and so on.

Having read the Linux/Cygwin man page on globbing,
it seems that that should probably instead be

        Copy[!a-zA-Z0-9_]of[!a-zA-Z0-9_]*

(which works in SVN)
as the [^...] syntax is "undefined" by POSIX.
(I don't know if that's entirely relevant to SVN.)

Rob.

Rob Hubbard.

________________________________________________________________
This message has been independently scanned for the Softel Group and cleared of containing viruses and other malicious data.

Powering Television Beyond the Video (TM)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-29 15:05:27 CET

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.