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虚拟盘的工作模式

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值