With the new iPhone 2x files i’ve stumbled uppon this problem…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to add a “@” sign in the end to get SVN to process the file.
For example, if you had a file called foo@2x.png which you want to add to SVN, you would type:
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:
The above command will use the find utility to list out each file with @ in its filename and then pipe each filepath to SVN using XARGS.
For each filepath, XARGS will execute the provided command
svn add %@, except that-I %tells XARGS to replace each occurrence of “%” in the provided command, with the filepath piped. XARGS effectively appends the special “@” at the end of the filename.For example, after replacing the “%” character, XARGS will execute
svn add path/to/your/file@2x.png@; SVN will accept this (presumably because SVN looks for the last occurrence of “@” and treats this as a revision specifier)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