且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SVN 无限循环 - [文件]“存储库中不存在"

更新时间:2023-01-15 16:56:55

很可能您已经损坏了本地工作副本,例如通过移动文件夹或您使用 Windows 资源管理器进行的一些其他操作,但应该通过 TortoiseSVN 上下文菜单完成..svn 文件夹中的信息现在不再与工作副本的状态匹配,这让 Subversion 感到困惑.

It seems most likely that you have corrupted your local working copy, e.g. by moving folders or some other manipulation that you did with windows explorer but should have done through the TortoiseSVN context menu. The information inside the .svn folders now no longer matches the state of the working copy, which is confusing Subversion.

要解决此问题,请使用 Windows 资源管理器(而不是 TortoiseSVN)删除工作副本中的父文件夹(Originals").然后在您的工作副本的根目录执行 TortoiseSVN 更新".这应该恢复正常工作的文件夹.

To fix this, delete the parent folder ("Originals") in your working copy with windows explorer (NOT with TortoiseSVN). Then do a TortoiseSVN "update" at the root of your working copy. This should restore the folder in working order.

另一种选择是完全丢弃您的工作副本并重新结帐.

Another option is to discard your working copy entirely and do a fresh checkout.

请注意,下一个版本的 Subversion (1.7) 将通过将所有元数据集中在根目录下的单个 .svn 文件夹中来减少损坏工作副本的机会.

Note that the next release of Subversion (1.7) will reduce the opportunities for corrupting your working copy by centralizing all metadata in a single .svn folder at the root.