Alex Rivera | Logout

Why Subversion skips files which contain the @ symbol?

Asked 2009-12-31T12:16:25.003
34

when I try to execute command like this (from a command-line or Perl script - it doesn't matter):

svn revert "build\myfile@test.meta"

SVN skips this file and outputs:

Skipped 'build\myfile'

I tried doing:

svn revert "build\*.meta"

But it gives the same result.

I can revert these files from the GUI. And I can revert these files by doing (but it reverts more than I want):

svn revert --recursive "build"

Is there a workaround for this?

Edit
Report

1 Answer

22

Just to add to the above correct answer, if you have lots of files with the "@" symbol in their name that you want to process in a batch (i.e. use * wildcard), you can do something like this in OS X Terminal (or any Linux box really):

find . -name "*@*" | xargs -I % svn add %@

The above command will use the find utility to list out each file with @ in its filename and then pipe the path to the file to SVN using XARGS. XARGS will replace each occurrence of % with the path and append the special "@" at the end of the filename so that SVN will accept it.

Hope this helps - I had to whack my head for a bit to add the gazzilion @2x.png files that were needed for my app to be upgraded for iOS4.0

answered 2010-08-18T11:31:49.197

Your Answer