CVS 签出时未签出任何文件
我今天安装了 CVS 服务器。我使用 sudo apt-get install cvsd 安装了 cvs 服务器。现在存储所有内容的文件夹是/var/lib/cvsd/cvsrepo/test。文件夹 test 包含一个名为 check.txt 的虚拟文本文件,这将证明一切正常。
我在客户端计算机上的 CVSROOT 是“:pserver: username@localhost:/cvsrepo”。当我进行 cvs 登录时,它会要求我输入密码,并很好地验证我的身份。然后我进行 cvs checkout,“cvs checkout 测试”。 test 文件夹是模块,而 cvsrepo 是存储库。当我首先下载 test 时,我收到消息“cvs checkout:更新 testFolder”,然后创建一个名为 test 的文件夹,但客户端计算机中没有虚拟文件 check.txt。签出只是创建一个包含 Entries、Repository 和 Root 文件夹的文件夹 CVS?为什么没有下载文本文件?
I installed a CVS server today. I installed cvs server using sudo apt-get install cvsd. Now the folder where everything is stored is /var/lib/cvsd/cvsrepo/test. Folder test contains a dummy text file by the name check.txt, which would prove everything works fine.
My CVSROOT on the client machine is ":pserver: username@localhost:/cvsrepo". When I do a cvs login, it asks me for a password, and authenticates me well. Then I do a cvs checkout, "cvs checkout test". Test folder is the module, while cvsrepo is the repository. When I download test first I get the message "cvs checkout: Updating testFolder" and then a folder by the name test is created, but it does not have the dummy file, check.txt in the client machine. A checkout only is creating a folder CVS which contains the Entries, Repository, and Root folders? Why isn't the text file being downloaded?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎是在说您有一个文件
/var/lib/cvsd/cvsrepo/test/check.txt
。如果是这样,这不是您存储库的有效部分。在签出中显示为test/check.txt
的文件在存储库中将是text/check.txt,v
,其内容将是 CVS/RCS 文件具有修订历史记录。您可以直接使用
mkdir
在 CVS 存储库中创建目录,但不建议这样做。您不能以这种方式创建文件,您必须签出目录,在该目录中创建文件并提交该文件。You seem to be saying that you have a file
/var/lib/cvsd/cvsrepo/test/check.txt
. If so, this is not a valid part of your repository. A file that appears astest/check.txt
in a checkout would betext/check.txt,v
in the repository, and its contents would be a CVS/RCS file with revision history.You can create directories in a CVS repository directly with
mkdir
, though it's not recommended. You can't create files that way, you have to check out a directory, create a file in the directory and commit the file.