Android Studio svn插件报错:“Please see the 'svn upgrade' command”或“You need to upgrade the working copy first”的解决方法

今天使用Android Studio比对代码的时候突然报错:

Error:svn: E155036: Please see the ‘svn upgrade’ command
svn: E155036: The working copy at ‘xxx/xxx’ is too old (format 29) to work with client version ‘1.9.4 (r1740329)’ (expects format 31). You need to upgrade the working copy first.

按照提示在Android Studio的terminal下输入:svn upgrade,然后得到如下报错:

svn: E155019: Can’t upgrade ‘xxx/xxx/aaa’ as it is not a working copy root
svn: E000002: Working copy database ‘xxx/xxx/aaa/.svn/wc.db’ not found
svn: E200042: Additional errors:
svn: E000002: Can’t open file ‘xxx/xxx/aaa/.svn/entries’: No such file or directory

说是当前目录不是一个working copy的根目录,然后在当前目录下找不到.svn目录下的一些文件。于是到文件目录里面看了一下发现有一个与工程根目录同级的目录叫”.svn”,估计要升级的就是这个东东了。于是在Android Studio的terminal下输入:“cd ../”定位到上一级目录即”.svn”所在的目录(也就是错误提示中的”xxx/xxx”目录”),然后执行“svn upgrade”。看到执行结果输出Upgraded ‘.’就行了。

Upgraded ‘.’

    原文作者:ei_chinn
    原文地址: https://www.jianshu.com/p/e0b120937199
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞