过完年第一天,总算解决了一个问题,虽然很小,但是也很高兴啊,哈哈哈哈……

在linux上安装完cvs,并配置好代码库主目录后,就要新增代码模块了(module),过年前搞了老半天,wincvs老是出现错误:cvs checkout: cannot open CVS/Entries for reading: No such file or directory,现在明白了,原来是我新增的方法不对。原来看文章说cvs目录和本地目录是一样的同步的,所以就以为在cvs代码库目录中新建一个目录就是建立了一个模块了,原来搞错了,还是要通过cvs import命令来新增模块。
现在通过wincvs来新增模块。网上找了资料,有这么一段:Be aware that CVS treats empty directories as non-existent. If you want to add a directory in which you have neither files nor subdirectories, you will have to create a dummy file in it. It is recommended to create a file named README.txt, which contains a short description of what this directory is for.
哈,原来cvs这么笨,空目录不认,还要在里面放一个文件才能作为模块上传。
好了,现在在本地cvs目录里新建一个目录,然后在这个目录里随便放一个什么文件,然后打开wincvs,在刚才新建的目录上右键-》导入模块,ok,按照你的要求把该选的都选上,然后提交,新的模块就生成了。
Logo

更多推荐