How to escape @ characters in Subversion managed file names?

后端 未结 11 1362
不知归路
不知归路 2020-11-28 01:49

For many Subversion operations, appending the \'@\' symbol to the end of a file or URL argument allows you to target a specific revision of that file. For example, \"svn in

11条回答
  •  迷失自我
    2020-11-28 02:14

    For svn commands with 2 arguments like "move", you must append "@" only at left (first) parameter. For example:

    $ svn add README@txt@
    A         README@txt
    
    $ svn move README@txt@ README2@txt
    A         README2@txt
    D         README@txt
    
    
    $ svn status
    A       README2@txt
    
    $ svn commit -m "blah"
    Adding         README2@txt
    Transmitting file data .
    Committed revision 168.
    
    $ svn delete README2@txt@
    D         README2@txt
    
    $ svn commit -m "blahblah"
    *Deleting       README2@txt
    
    Committed revision 169.
    

    This line is important: $ svn move README@txt@ README2@txt

    As you can see, we don't need to append "@" at "README2@txt"

提交回复
热议问题