How to escape @ characters in Subversion managed file names?

From the SVN book (emphasis added):

The perceptive reader is probably wondering at this point whether the peg revision syntax causes problems for working copy paths or URLs that actually have at signs in them. After all, how does svn know whether news@11 is the name of a directory in my tree or just a syntax for “revision 11 of news”? Thankfully, while svn will always assume the latter, there is a trivial workaround. You need only append an at sign to the end of the path, such as news@11@. svn cares only about the last at sign in the argument, and it is not considered illegal to omit a literal peg revision specifier after that at sign. This workaround even applies to paths that end in an at sign—you would use filename@@ to talk about a file named filename@.


The original answer is correct, but perhaps not explicit enough. The particular unix command line options are as follows:

svn info '[email protected]@'

or

svn info "[email protected]@"

or

svn info image\@2x.png\@

I just tested all three.


Solution for adding multiple files in different sub-folders:

for file in $(find ./ -type f -name "*@*.png"); do svn add $file@; done

Just replace the "png" in "@.png" to the kind of files you want to add.


to add the following file : [email protected] do the following: svn add image\@2x.png@


Simply add

@

at the of the file you need to use, no matter what SVN command it is, e.g.:

[email protected]

to

[email protected]@