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

Re: How to delete directory with at symbol in the name

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 4 Jun 2010 11:24:37 +0200

On Thu, Jun 03, 2010 at 04:58:23PM -0500, Russell E Glaue wrote:
> If you accidentally put the at symbol in a directory name like this:
>
> svn copy http://svn.domain.com/repos/trunk/mydir@49 http://svn.domain.com/repos
j> /trunk/mydir_at_HEAD -m "bring back rev 49 from the dead"
>
> You end up with the following path in HEAD: '/trunk/mydir_at_HEAD/'
> Where '@HEAD' is part of the actual directory name.

Which version of Subversion were you using?
I bet this copy won't produce the same result with 1.6.5 or greater.

The @ character within the basename of a path is always special to svn.
It means "what follows is a peg revision".
See http://svnbook.red-bean.com/nightly/en/svn.advanced.pegrevs.html

Contrary to what the book describes, versions of Subversion before 1.6.5
were inconsistent about parsing peg revisions on the command line.
In your case, the copy command did not treat the @ in a special way,
but the delete command did.
In 1.6.5 this was fixed so that all commands treat the @ in a special way.

Stefan
Received on 2010-06-04 11:25:28 CEST

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.