无法打开 .svn/text-base/file.svn-base? [英] Can't open .svn/text-base/file.svn-base?

查看:52
本文介绍了无法打开 .svn/text-base/file.svn-base?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 TortoiseSVN.我只是对我的工作副本做了很多更改,现在我去提交了一些文件,但在一个名为 Search.aspx.cs 的文件中它说

I'm using TortoiseSVN. I just made quite a few changes to my working copy and now I went to do a commit some of the files went through but at one file named Search.aspx.cs it says

Commit failed (details follow):
Can't open file 
'C:\-----\trunk\.svn\text-base\Search.aspx.cs.svn-base': 
The system cannot find the file specified.

我已尝试进行 SVN 更新和 SVN 清理,但没有恢复此文件.我什至无法创建差异,因为它给出了有关丢失文件的类似错误.我该如何解决?我做了什么导致它?

I have tried doing a SVN update and SVN cleanup and nothing is restoring this file. I can't even create a diff because it gives a similar error about missing files. How do I fix this? What did I do to cause it?

推荐答案

这对您的情况来说似乎是一个可能的答案?

Does this seem like a possible answer to your situation?

(来自 http://www.uwplatt.edu/csse/工具/subversion/subversion-help.html)

无法添加文件'(此处的名称)':已存在同名对象存在.

"无法打开文件 'folder.svn\tmp\text-base\file.svn-base':系统找不到文件指定."

都表示两个文件在同一个文件夹具有相同的名称,除了大写;例如Readme.txt"和README.TXT".Unix和 Subversion 区分大小写,所以这些文件被认为是完全不相关.但是在 Windows 中不区分大小写,所以当它尝试在上面更新 README.TXTReadme.txt(比如说),它坏了.

Both mean that two files in the same folder have the same name except for capitalization; for example "Readme.txt" and "README.TXT". Unix and Subversion are case-sensitive, so the files are considered to be completely unrelated. But in Windows is not case-sensitive, so when it tries to update README.TXT on top of Readme.txt (say), it breaks.

解决问题最可靠的方法是登录到 Unix 系统(例如io.uwplatt.edu) 并使用 unix 注释查看那里的存储库.你然后可以使用 svn mv 命令重命名其中一个文件.如果你在尝试将文件添加到的中间您的存储库,您可以尝试使用TortoiseSVN->Rename... 重命名现有文件完全不同,然后更新.注意你需要使用 TortoiseSVN 重命名命令;只是重命名文件Windows 资源管理器不会修复您的问题.

The surest way to fix the problem is to log in to a Unix system (such as io.uwplatt.edu) and use the unix notes to check out the repository there. You can then use the svn mv command to rename one of the files. If you are in the middle of trying to add a file to your repository, you might try using TortoiseSVN->Rename... to rename the existing file to something entirely different and then updating. Note that you need to use the TortoiseSVN rename commands; merely renaming the file in Windows Explorer won't fix your problems.

我遇到了同样的错误,使用 Tortoise SVN 的 repo 浏览器能够确认存储库中有两个文件名相同,只是大小写字母不同.您也可以通过 repo 浏览器通过删除其中一个文件来解决此问题(您可以先通过 repo 浏览器进行 diff 以确保您拥有所需的内容).

I had this same error, and using Tortoise SVN's repo browser was able to confirm that there were two files in the repository with the same name only varying by upper/lowercase letters. You can also fix this issue through the repo browser by deleting one of the files (you can do a diff first through repo browser to make sure you have what you need).

这篇关于无法打开 .svn/text-base/file.svn-base?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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