0

In my iOS project, I have images ending in @2x.png, for retina resolution. I am using command line svn. When I try to add image@2x.png to svn repo, I do it as:

svn add image@2x.png 

and then I get a warning as follows:

svn: warning: 'image' not found

Image is not added to subversion control, and I cannot commit it. "Regular image", ie. "image.png" commits fine.

What am I doing wrong? How to solve this?

Maggie
  • 7,823
  • 7
  • 45
  • 66

4 Answers4

6
svn add image@2x.png@

please note the last "@" sign!

pandaxcl
  • 76
  • 1
  • 1
3

try with following line :

svn add "image@2x.png"
Victor
  • 163
  • 6
2

Just use quotes around the filename in this case cause @ is a special marker for SVN to mark peg-revisions.

Christian.K
  • 47,778
  • 10
  • 99
  • 143
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
  • the answer was already here: http://stackoverflow.com/questions/757435/how-to-escape-characters-in-subversion-managed-file-names, and, seriously, this answer will not do. – Sjors Branderhorst Nov 29 '13 at 14:25
0

pandaxcl has the correct answer. Just putting the filename in quotes doesn't work. You don't need the quotes, but you do need to add an @ at the end of the filename.

The correct answer, with documentation from the SVN manual, is here:

How to escape @ characters in Subversion managed file names?

Community
  • 1
  • 1