I use this to add all unversioned files to SVN:
svn status |grep '\?' |awk '{print $2}'| xargs svn add
However it doesn't include files with an "@2x" suffix.
How would I modify the line above to include "@2x" files in the SVN add?
I use this to add all unversioned files to SVN:
svn status |grep '\?' |awk '{print $2}'| xargs svn add
However it doesn't include files with an "@2x" suffix.
How would I modify the line above to include "@2x" files in the SVN add?
Apache Subversion interprets the "at sign" ('@') as a peg revision specifier and it seems to be the cause here. I advise you to check the StackOverflow thread discussing the case when you have file or folders with '@' sign in it's name.
According to the SVNBook you can customize your command to append '@@' to the end of the path you pipe to svn add
in order to workaround the issue. E.g. the following answer should help you: https://stackoverflow.com/a/12292498/761095.
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@.