[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-19 02:55:25 CEST

On May 18, 2007, at 16:33, Evan.Watson@MSAnet.com 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"
> When I run the URL command I get
> svn: Path 'http://svn/repo/project%5C' does not exist in revision 144
> If I was not clear this a folder in the repo not the root repo name.

If you used "svn mkdir ..." to create it, it's a folder in a
repository. If you used "svnadmin create ..." to create it, then it
is itself a repository.

Try "svn ls http://svn/repo/" to see what's there, because it doesn't
think "project\" is. The "svn ls" command cannot show you a list of
repositories, so if you do see a list of items, then they are all in
a single repository.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 19 02:55:57 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.