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

Re: how to svn merge of filename with spaces ?

From: Robert Heller <heller_at_deepsoft.com>
Date: Tue, 7 Jul 2015 14:37:05 -0400

At Tue, 7 Jul 2015 10:58:33 -0700 Zk W <mpc8250_at_gmail.com> wrote:

>
>
> Hi All
>
> We have SVN 1.6.
> We like to perform a svn merge on a file where its filename has spaces.
> eg
> Roaming Apple.txt
>
> Is this syntax correct below to svn merge to a working copy ?
> If not, what should it be ?
>
> svn merge -c 12345 "https://mytext.abb.com/app/path/to/Roaming Apple.txt" .
>
> using quotes?
>
>
> Right now, we get error
> svn: Unable to parse URL '/svn/app/!svn/bc/12576/path/to/Roaming Apple.txt
> using
> svn merge -c 12345 https://mytext.abb.com/app/path/to/Roaming Apple.txt .
>
> Any help is appreciated.
> Thank you

*URLs* cannot (legally) have spaces (the syntax spec forbids it). OTOH, it is
possible to use URL encoding to encode a local part with 'spaces' (hostnames
never have spaces) into a URL:

svn merge -c 12345 https://mytext.abb.com/app/path/to/Roaming+Apple.txt .

OR

svn merge -c 12345 https://mytext.abb.com/app/path/to/Roaming%20Apple.txt .

OTOH, if you were refering to a plain local file, you could use single or
double quotes:

svn log 'Roaming Apple.txt'

OR

svn log "Roaming Apple.txt"

>
>

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller_at_deepsoft.com       -- Webhosting Services
                                                                         
Received on 2015-07-07 20:50:46 CEST

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.