Why Subversion skips files which contain the @ symbol?

后端 未结 4 1290
攒了一身酷
攒了一身酷 2021-02-01 15:24

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 s

4条回答
  •  盖世英雄少女心
    2021-02-01 15:43

    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

提交回复
热议问题