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

Re: Removing Folder with non-Alphanumeric character

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-18 23:07:57 CEST

On May 18, 2007, at 09:12, Erik Hemdal wrote:

>> I created a folder via the command line svn tool. By mistake (fat
>> fingers) a '\' was added to the name. I am not able to delete or
>> rename the folder in the repo. How do I correct this issue?
>>
>> example http://myrepo/svn/projectname\
>
> Try escaping the backslash with another backslash.
>
> http://myrepo/svn/projectname\\
>
> If you're on Linux or UNIX, the backslash is a special character
> used to turn off any special meaning of the next character. So try
> using another backslash to turn off the special meaning of the
> original backslash.

If you're doing this in a working copy, then yes, another backslash
would escape it in the shell:

svn co http://myrepo/svn
svn mv projectname\\ projectname
svn ci -m "Rename projectname\ to projectname"

However, if you're using URLs, you use percent-encoding to escape
unusual characters:

svn mv http://myrepo/svn/projectname%5C http://myrepo/svn/projectname
-m "Rename projectname\ to projectname"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 18 23:08:32 2007

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.