[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: <Evan.Watson_at_MSAnet.com>
Date: 2007-05-19 04:21:32 CEST

The process I use is to create trunk/tag/batch in a temp directory then
import the sub folder into a folder into a repository.

%1 = RepoName
%2 = FolderName

ECHO Create the temp to fill the Repository
mkdir c:\temp\svn-dir\trunk
mkdir c:\temp\svn-dir\branches
mkdir c:\temp\svn-dir\tags

ECHO Import Repository Layout
svn import c:\temp\svn-dir file:///e:/svn/%1/%2 -m "Initial Import"

When I do a svn ls I get:
$ svn ls http://server/svn/RepoName

Ryan Schmidt <subversion-2007b@ryandesign.com>
05/18/2007 20:55

Erik Hemdal <erik@comprehensivepower.com>, users@subversion.tigris.org
Re: Removing Folder with non-Alphanumeric character

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.
Received on Sat May 19 04:50:52 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.