Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using svn delete in a URL with space character

Tags:

svn

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?

like image 979
iceman Avatar asked Oct 05 '10 20:10

iceman


People also ask

How do you do svn delete?

Deleting a File or Directory To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…

How do I delete a file from a commit in svn?

Using svn to delete a file from your working copy deletes your local copy of the file, but merely schedules it to be deleted from the repository. When you commit, the file is deleted in the repository. $ svn delete myfile D myfile $ svn commit -m "Deleted file 'myfile'." Deleting myfile Transmitting file data .

What does svn RM do?

Name. svn delete (del, remove, rm) — Delete an item from a working copy or the repository.

How do I delete a local repository in svn?

Right click the any folder and choose TortoiseSVN -> Repo Browser. Then point to your local repository in the URL field. Once open you could be able to browse the repo, and with a right click, delete the folder.


1 Answers

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"
like image 95
Pewpewarrows Avatar answered Sep 22 '22 15:09

Pewpewarrows