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

RE: Problem with spaces in svn:externals working copy paths

From: Rob Hubbard <rob.hubbard_at_softel.co.uk>
Date: Thu, 22 Jan 2009 10:50:50 -0000

Hello again,

Sorry; typically after sending the question think I've found the answer:

There's another thread, which starts here:
        svn:externals with a space in the directory name
and which links to the following bug:
        svn:externals doesn't support spaces in local path

It looks like this is fixed in the forthcoming SVN version 1.6.

Sorry for the noise; hopefully this will at least answer the question
for someone else.



        From: Rob Hubbard [mailto:rob.hubbard_at_softel.co.uk]
        Sent: 22 January 2009 10:38
        To: users_at_subversion.tigris.org
        Subject: Problem with spaces in svn:externals working copy paths
        Henrik Sundberg recently posted a question about specifying
spaces in ignore patterns (globally or in svn:ignore). I've recently
encountered a similar problem trying to specify spaces in svn:externals.
This question has been addressed on this mailing list before, but my
experiments seem to show either that the solution posed there doesn't
work, or that the behaviour has been broken (perhaps with the
introduction of relative paths).
        The thread starts here (this is TortoiseSVN rather than SVN, but
the discussion is still valid):
            [TSVN] can't set svn:externals property to reference a
directory with a space
        It is possible to specify a space in a URL with '%20'. But, I
have found no way to specify a (corresponding) space in the working copy
        I'm using the following version of the command-line client:
            $ svn --version
            svn, version 1.5.3 (r33570)
               compiled Oct 9 2008, 09:01:49
        [I'm using Windoze XP with Bash in Cygwin, but I get the same
results using plain old MS DOS.]
                I have the following externals set on a directory:
            $ svn propget svn:externals .
            -r8 file:///C:/svn_experiment/repos/dir%20with%20spaces/
            dir%20with%20spaces2/ -r8
        (Here, I've tried the old and the new formats.)
                Following an update, I get
            $ ls -1p
        So, a '%20' in the working copy path part of the externals
definition results in literally that rather than a space. The best I can
currently ...

[... do is use an underscore '_'.]
        I've tried various things, such as using spaces, '%20', '&#32',
'&#x20;', '\s', '[[:space:]]', '[\s]', and 'single' and "double"
quotation marks, but none have worked. Some of these were, admittedly,
"grasping at straws", and I had no expectation that they'd work. The '\'
in '\s' is interpreted as a directory separator. The spaces and quotes
are not even parsed.
        Is there any further information on this now? I'm not sure what
would be a good syntax if this is added as a feature to SVN. Really
something is needed as a delimiter or escape character that is not
permitted in a valid path on any operating system.
        Many thanks,
        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 from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-22 11:51:48 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.