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?
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…
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 .
Name. svn delete (del, remove, rm) — Delete an item from a working copy or the repository.
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.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With