tags:

views:

26

answers:

4

I' trying to remove a file in a remote repository with a space character.

svn delete -m "Deleting file" "https://svn.xyz.edu/applications/workshop/H Y P W 2011_2.pdf"

I get the error

svn: URL 'https://svn.xyz.edu/applications/workshop/H%2520Y%2520P%2520W%25202011_2.pdf' does not exist

How to resolve this problem and delete the file?

A: 

Try:

svn delete -m "Deleting file" "https://svn.xyz.edu/applications/workshop/H%20Y%20P%20W%202011_2.pdf"

which will URL encode the spaces properly.

Burton Samograd
A: 

Try manually inserting the encoded space character:

H+Y+P+W+2011_2.pdf

or

H%20Y%20P%20W%202011_2.pdf
Keith
@Keith:didn't work
iceman
SVN 1.1+ should allow spaces, and versions prior required you to escape spaces manually with %20 - see http://subversion.apache.org/docs/release-notes/1.1.html
Keith
+1  A: 

For some reason it appears to be trying to double URI encode the URL. It changes the space to %20, then changes the % to its encoded value %25, giving you %2520.

Try putting the %20 in there yourself:

svn delete -m "Deleting file" "https://svn.xyz.edu/applications/workshop/H%20Y%20P%20W%202011_2.pdf"
Pewpewarrows
@Pewpewarrows:didn't work
iceman
A: 

why don't you check out the repo and commit the delete?

Steve