SVN 无限循环 - [文件]“存储库中不存在" [英] SVN Endless Loop - [file] "does not exist in repository"

查看:36
本文介绍了SVN 无限循环 - [文件]“存储库中不存在"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这已经困扰我一周了.

SVN 一直告诉我某个文件在存储库中不存在".

SVN keeps telling me that a certain file "does not exist in repository".

好的.让我们删除它.忘掉它.忽略它.任何.我并不真正关心这个文件(特别是如果它在每晚签入时仍然失败).

Fine. Let's just delete it. Forget about it. Ignore it. Whatever. I don't really care about this file (especially if it continues to fail the nightly check-in).

最奇怪的部分?恢复"实际上会从存储库中恢复文件,因此它就在那里(可能已损坏?).

The most bizarre part? A "restore" will actually RESTORE the file from the repository, so its there (corrupted, maybe?).

...这一定是锦上添花.如果我通过 Windows 资源管理器删除文件,SVN 将从存储库中恢复该文件,并在此之后声明它不存在于存储库中.跆拳道?

...and this has to be the icing on the cake. If I delete the file through Windows Explorer, SVN will RESTORE the file from the repository, and right after that state that it doesn't exist in the repository. WTF?

有没有人知道如何摆脱这个?

Does anyone have a clue how to get rid of this?

我已经尝试过清理、还原、删除和其他任何可以想象的事情,但这一次让我难倒了.

I've already tried clean-ups, reversions, deletions and anything else imaginable, but this one has me stumped.

感谢您提供的任何提示...

Thanks for any tips you might have...

推荐答案

很可能您已经损坏了本地工作副本,例如通过移动文件夹或您使用 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.

这篇关于SVN 无限循环 - [文件]“存储库中不存在"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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