Can't open file 'folder/.svn/tmp/text-base/file.svn-base': The system cannot find the file specified的实用解决方法

SVN服务器下,因为同目录下文件同名的原因<大小写不同>,会导致windows下SVN check out/export的错误:

In directory '路径...'

can't open file

‘路径.../.svn/tmp/text-base/(同名文件).svn-base':

系统找不到指定的文件

网上搜来翻去,中文英文都是提示:subversion是针对大小写敏感的文件系统设计(如linux)的,而在大小写不敏感的windows下就会有问题。提出的解决办法都是使用版本库浏览器重命名的方法。

现在的问题是,我们需要保留这种同名称但不同大小写的命名方式。因为linux内核目录下有大量原始设计的重名文件。

折腾半天,发现只能用手动打包的方式来解决这个问题:在SVN上传code前,先tar -zcvf或-jcvf打包kenerl目录。后续使用,每次check out或export时就多了一次手动解压(tar -zxvf或jxvf)的过程。这样就可以解决重名error的问题。<加个Readme告诉你的同事们,你打包了~>

 

下面这段提示只能重命名的英文,看着很喜欢,就顺便留下 http://stackoverflow.com/questions/2136044/cant-open-svn-text-base-file-svn-base

 

"Failed to add file '(name here)': object of the same name already exists.
or
"Can't open file 'folder/.svn/tmp/text-base/file.svn-base': The system cannot find the file specified."

 

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.

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.  

 

 

使用VMware linux,映射samba虚拟盘的工作模式

 

你可能感兴趣的:(Can't open file 'folder/.svn/tmp/text-base/file.svn-base': The system cannot find the file specified的实用解决方法)