美文网首页
SVN提交遇到的问题

SVN提交遇到的问题

作者: YannChee | 来源:发表于2017-12-13 17:20 被阅读9次

    1.

    当打开Cornerston时,图像化工具提示



    就尝试用终端命令来提交svn:

    • 1.用cd命令切到要提交文件所在路径: cd XXX
    • 2.使用add命令: svn add xxxx (add * 是添加所有)
    • 3.使用commit命令: svn commit -m “注释”

    cd 到需要被管理的文件路径下, 执行 svn add * ,时SVN 控制台报错:

    svn: E155036: Please see the 'svn upgrade' command

    出现该问题是由于工程目录的svn版本比本机安装的svn版本低导致的,
    解决办法:1.在命令行下跳转到工程目录文件夹,2.执行"svn upgrade"命令

    svn upgrade


    上图,表示项目的SVN客户端版本升级好了

    add *


    然后发现 控制台报警告和错误

    svn: E200009: Could not add all targets because some targets are already versioned
    svn: E200009: Illegal target for the requested operation

    这是因为添加的文件中,有部分文件之前已经添加本地 暂缓区,重复添加就会报错添加不上

    如果想把这些文件页添加上,可以使用强制添加

    svn add 想要添加的路径 --force

    • 最后commit 一下


    2.


    原因是
    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 svnknow whether news@11 is the name of a directory in my tree or just a syntax for “revision 11 ofnews”? 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@

    svn add 路径/图片名@2x.png@

    相关文章

      网友评论

          本文标题:SVN提交遇到的问题

          本文链接:https://www.haomeiwen.com/subject/hdhzixtx.html