svn: Can't revert without reverting parent
2015-11-06 15:32
288 查看
问题描述:
从svn上checkout代码时, 中途因为网络中断, 没有下载全全部代码, 于是就将那个没下载全的代码整个目录都删掉了. 当第二次重新启动myEclipse, 与资源库同步时, 发现在"Outgoing Mode"下有许多删除标志(减号)的代码, 右击这些代码, 点击还原时, 报出了如下错误
在stackoverflow上找到类似的问题, 里面提到了svn revert的命令, 试用如下(FolderName为之前删除的目录)
继续看stackoverflow上的答案, 里面提到"The problem is that 'mydir' was not added to the SVN yet ", 这给了我灵感, 既然本地没有了整个目录, 如果重建之前删除的目录,
会不会有效果呢? 于是在项目对应的位置上, 右击, 新建了目录, 名称为之前删掉的FolderName(这时图标为一个x), 右击这个目录, 选择还原, Console上又欢快的checkout了, 至此问题得到解决!
感谢谷歌, 让我能找到类似的问题
stackoverflow问题链接: http://stackoverflow.com/questions/23675206/svn-cant-revert-mydir-without-reverting-parent
从svn上checkout代码时, 中途因为网络中断, 没有下载全全部代码, 于是就将那个没下载全的代码整个目录都删掉了. 当第二次重新启动myEclipse, 与资源库同步时, 发现在"Outgoing Mode"下有许多删除标志(减号)的代码, 右击这些代码, 点击还原时, 报出了如下错误
org.apache.subversion.javahl.ClientException: The operation can not be performed with the specified depth svn: Can't revert 'E:\myeclipse_workspace\...' without reverting parent org.apache.subversion.javahl.ClientException: The operation can not be performed with the specified depth svn: Can't revert 'E:\myeclipse_workspace\...' without reverting parent\
在stackoverflow上找到类似的问题, 里面提到了svn revert的命令, 试用如下(FolderName为之前删除的目录)
E:\myeclipse_workspace\ProjectName\WebContent>svn -R revert FolderName svn: E155036: Please see the 'svn upgrade' command svn: E155036: The working copy at 'E:\myeclipse_workspace\ProjectName' is too old (format 29) to work with client version '1.9.2 (r1703836)' (expects format 31). You need to upgrade the working copy first.结果显示本地client太老, 需要升级(我本地TortoiseSVN客户端是1.9.2版本, 而myEclipse中svn版本是1.7.10, svn命令是TortoiseSVN中提供的), 但是我又不想升级
继续看stackoverflow上的答案, 里面提到"The problem is that 'mydir' was not added to the SVN yet ", 这给了我灵感, 既然本地没有了整个目录, 如果重建之前删除的目录,
会不会有效果呢? 于是在项目对应的位置上, 右击, 新建了目录, 名称为之前删掉的FolderName(这时图标为一个x), 右击这个目录, 选择还原, Console上又欢快的checkout了, 至此问题得到解决!
感谢谷歌, 让我能找到类似的问题
stackoverflow问题链接: http://stackoverflow.com/questions/23675206/svn-cant-revert-mydir-without-reverting-parent
相关文章推荐
- Quartz(GUI)图形界面程序----Quartz Web
- File.ReadAllText 读取中文乱码问题
- Android开发——通过扫描二维码,打开或者下载Android应用
- Java语言基础之Object类
- LayoutInflater
- 用XRDP方式远程桌面连接CentOS6(centos7好像不能直接按以下操作)
- mysql数据库实现类似oracle connect by prior的查询
- MFC对话框button控件置灰
- 堆排序
- linux 解压 war 包
- [BCB] C++ BUILDER 绘图 随机生成图形
- [LeetCode]59. H-Index H指数
- Hibernate主键生成策略
- javascript 回调函数(闭包)
- 看到一篇文章刷CSDN博客访问量,目前没有环境实现,抽空可以去跑跑看或者改为其他方式实现
- 关于FPGA软核的一些总结(microblaze && NIOS II)
- java获取服务器CPU,内存,硬盘使用量
- docker安装入门
- libevent代码阅读(5)——“hello-world.c”之 event_base对象的创建
- 1096. Consecutive Factors