CVS 错误:服务器上不存在目录
我有一个在 Visual Studio 2010 中创建的 .Net MVC 项目。我们使用CVS进行源代码控制。我使用 TamTam CVS 通过 Visiual Studio 绑定源代码控制,我认为这就是问题开始的地方。
我在使用 TamTam 时遇到了一些错误,因此我尝试通过使用 TortoiseCVS 从窗口签入来解决该问题。现在,尽管项目的大部分都在源代码控制之下,但当我尝试添加其内容(使用 TortoiseCVS)时,某些子目录会出现错误。
这些是有问题的文件夹:
项目\内容\主题\基础 项目\内容\主题\基础\图像
我在 base
文件夹和 base\images
文件夹上看到绿色的 CVS 检查。但是,当我尝试将这些文件夹的内容添加到 CVS 中时,我得到:
cvs [服务器已中止]:目录 /repositories/location/Project /项目/项目/内容/主题/基地 服务器上不存在
我尝试从 base
和 base\images
目录下删除所有隐藏的 CVS 文件夹,但现在出现此错误:
cvs add: CVSROOT 已设置但为空!确保 cvs 添加: CVSROOT 的规范是合法的,可以通过 cvs add: `-d' 选项、CVSROOT 环境变量或 cvs [add aborted]: CVS/根文件(如果有)。
错误,CVS 操作失败
解决此问题的最佳方法是什么?
I have a .Net MVC project created in Visual Studio 2010. We're using CVS for source control. I bound the source control through Visiual Studio using TamTam CVS and I think that is where the problems began.
I got some errors using TamTam so I tried to resolve it by checking it in from Window using TortoiseCVS instead. Now, even though most of the project is under source control, some sub-directories are giving errors when I try to add their contents (using TortoiseCVS).
These are the problem folders:
Project\Content\themes\base Project\Content\themes\base\images
I get the green CVS check on the base
folder and on the base\images
folder. However, when I try to add the contents of these folders into CVS I get:
cvs [server aborted]: Directory /repositories/location/Project
/Project/Project/Content/themes/base
does not exist on the server
I tried deleting all the hidden CVS folders from under the base
and base\images
directory but now I get this error:
cvs add: CVSROOT is set but empty! Make sure that the cvs add:
specification of CVSROOT is legal, either via the cvs add: `-d'
option, the CVSROOT environment variable, or the cvs [add aborted]:
CVS/Root file (if any).Error, CVS operation failed
What is the best way to resolve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近收到“CVSROOT 已设置但为空!”在 Windows 上使用 TortoiseCVS 1.12 时出现错误消息。我发现问题是由我的 CVS/Root 文件具有 Unix 风格的行结尾引起的。当我更改 CVS/Root 文件以使其具有 Windows 样式的行结尾时,错误消息不再出现。我的根文件具有 Unix 风格的行结尾的原因是因为我使用 cygwin 的 cvs 命令而不是 TortoiseCVS 来检查文件。
I recently got the "CVSROOT is set but empty!" error message when using TortoiseCVS 1.12 on Windows. I found that the problem was caused by the fact that my CVS/Root file had Unix-style line endings. When I changed the CVS/Root file so that it has Windows-style line endings, the error message no longer occurs. The reason why my Root file had Unix-style line endings is because I had checked out the files using cygwin's cvs command instead of TortoiseCVS.