svn 改变我的文件名

发布于 2024-08-14 05:54:35 字数 1007 浏览 8 评论 0原文

我在 Ubuntu 9.10 上使用命令行 SVN 1.6.5。这是我第一次在最新的 Ubuntu 上使用它,我发现 svn 对文件名感到困惑。问题如下:

我首先使用

sudo svn co http://my-repository/h2m h2m

成功签出这些文件后,我立即使用

svn st 并发现

dean@notebook:~/FAT32/h2m$ svn st
?       license                  
?       readme                   
?       cnt/readme               
!       cnt/README               
?       doc/changes              
!       doc/CHANGES              
?       data/readme              
!       data/README              
?       octave/readme            
!       octave/README            
!       LICENSE                  
!       README    

看起来就像

我发现检查了我的 \h2m\data\ 文件夹并发现有一个名为 README 的文件。

我还检查了我的服务器存储库:

dean@notebook:~/FAT32/h2m/data$ svn list http://my-repository/h2m/data
README
digits.m
digits.mat
digits.sig

这很奇怪,我期待收到您的来信。

顺便说一句:我正在使用双启动,我发现这些文件在我的 Windows 7 上运行良好乌龟SVN。

再次感谢。

I'm using command line SVN 1.6.5 on my Ubuntu 9.10. This is my first time using it on the latest Ubuntu, I found svn confused about file names. The problem was as follow:

I firstly used

sudo svn co http://my-repository/h2m h2m

after successfully checkout these files, I immediately used

svn st and found

dean@notebook:~/FAT32/h2m$ svn st
?       license                  
?       readme                   
?       cnt/readme               
!       cnt/README               
?       doc/changes              
!       doc/CHANGES              
?       data/readme              
!       data/README              
?       octave/readme            
!       octave/README            
!       LICENSE                  
!       README    

Looks like

I find checked my \h2m\data\ folder and find there is a file called README.

I also checked my server repository:

dean@notebook:~/FAT32/h2m/data$ svn list http://my-repository/h2m/data
README
digits.m
digits.mat
digits.sig

This is strange,I'm looking forward to hearing from your.

BTW: I'm using dualboot, I found the files are working perfectly on my Windows 7 which was using Tortoise SVN.

Thanks again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乱了心跳 2024-08-21 05:54:35

第一个看起来错误的事情是您已以 root (sudo) 身份签出,然后使用普通用户帐户。

另一件事是文件系统区分大小写。我预计在使用 fat32 分区时会出现这样的奇怪情况。也许检查安装选项会有所帮助。

The first thing that looks wrong is that you've checked out as root (sudo) and then used normal user account.

Another thing is filesystem case sensitivity. I would expect weirdness like that when working with fat32 partition. Maybe checking mount options will help.

对你再特殊 2024-08-21 05:54:35

该问题很可能与文件系统不区分大小写有关。您应该检查挂载文件系统的选项是什么,特别是禁用自动转换为小写字母。 Subversion 将文件名视为区分大小写,但您当前的文件系统正在将其转换为小写,因此状态结果为:

? cnt/自述文件
! cnt/自述文件

这意味着 subversion 认为它创建了一个名为 cnt/README 的文件,但该文件不存在于当前文件系统中(! 标记表示已删除< /em>),同时如果将 cnt/readme 视为文件系统中存在的新文件,但从未添加到 subversion)

修复您的挂载选项,或使用区分大小写的文件系统,你会没事的。

The issue is most probably related to the fact that the filesystem is case insensitive. You should check what the options for mounting the filesystem are, and in particular disable automatic conversion to lower case. Subversion treats the file names as case sensitive, but your current file system is converting it to lower case, and thus the result of the status:

? cnt/readme
! cnt/README

That means that subversion believes it created a file named cnt/README but that file is not present in the current file system (! mark means deleted), and at the same time if sees cnt/readme as a new file present in the filesystem but that was never added to subversion)

Fix your mount options, or use a case sensitive filesystem, and you will be fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文