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

ignoring filenames with spaces

From: Rob Hubbard <rob.hubbard_at_softel.co.uk>
Date: Wed, 29 Oct 2008 13:06:54 -0000


I would like to ignore certain filename patterns that contain spaces
in the SVN config file.

The specific example I'm interested in concerns Microsoft Windoze.
Occasionally I might make a (temporary) copy of a file using
Windoze Explorer (^C, ^V).

Following a copy of my_file.txt, I might then have
    Copy of my_file.txt
    Copy (2) of my_file.txt
and so on.

I would like to add an entry in the config file as follows:

    global-ignores =
        Copy of *

Now, obviously that doesn't work, as the space is a separator
(and, in this case, so the "*" causes every unversioned file to be
I have tried the following variants (inspired by globbing and other
but none of these seems to work (on Windoze):

    global-ignores =
        "Copy of *"
        Copy[ ]of[ ]*
        Copy\ of\ *

Using these individually, they either fail to match the required file,
or match too widely.

(I imagine that the svn:ignore property will have similar problems,
though I've not tested that.)

I do have a workaround, which is to use ? as follows:

    global-ignores =

However, ? matches any single character, not just space.

An "improvement" is to use an inverted character class:

    global-ignores =

and so on.

It would be good if it was possible to express matching a space
Is this possible?

If not, please consider this a feature request.


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 14:07:27 CET

This is an archived mail posted to the Subversion Users mailing list.