如何修复 Subversion «!»地位 [英] How to fix Subversion «!» status

查看:28
本文介绍了如何修复 Subversion «!»地位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Subversion 手册指出:

The Subversion manual states:

'!'

物品丢失(例如您移动了或不使用 svn 删除它).这个也表明一个目录是不完整(结帐或更新是中断).

Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).

但是和 Subversion 一样,没有任何关于如何解决问题的指示.

But as so often with Subversion, there is no indication on how to fix the problem.

通常,我会使用我信任的 Fix_Subversion.command 但这次它是主干,它将永远持续下去.

Normally, I would use my trusted Fix_Subversion.command but this time it is trunk and it will take forever.

那么有没有更快的选择?

So is there any faster option?

推荐答案

svn revert /path/to/file
svn rm /path/to/file      # if you want to delete it from svn itself

黄金法则是:一旦某些东西处于 svn 控制之下,任何移动、删除、重命名都应该使用 svn 命令(svn mv、svn rm 等)完成,而不是使用普通的文件系统/文件浏览器功能.

Golden rule is: once something is under svn-control, any moving, deleting, renaming, should be done with svn commands (svn mv, svn rm, etc.), not using normal filesystem/file-explorer functions.

这篇关于如何修复 Subversion «!»地位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆