Using svn delete in a URL with a space character

I am trying to delete 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 an error

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

How to solve this problem and delete the file?

+5
source share
6 answers

For some reason, it seems to be trying to double the uri uri. It changes the space to %20, then changes %to its encoded value %25, providing you %2520.

Try to put %20inside yourself:

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

If you are using TortoiseSVN, use the Delete command in local mode and then commit the SVN. I tried my part, it works.

+2
source

, , , .

# 3636 , ​​ subversion 1.6.12

, subversion 6.1.12 , .

Unable to update for any reason? All is not lost. You can rename the directory so that it does not have spaces, and then delete this directory

svn mv "https://svn.xyz.edu/url with spaces" https://svn.xyz.edu/urlwithoutspaces -m "subversion issue #3636"

svn delete https://svn.xyz.edu/urlwithoutspaces
+1
source

Try:

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

which will correctly encode spaces.

0
source

Try manually inserting the encoded space character:

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

or

H%20Y%20P%20W%202011_2.pdf
0
source

why don't you check repo and do a delete?

0
source

All Articles