命令行 CVS 更新和本地删除目录
我不小心在本地删除了 CVS 存储库中的一个目录,我也在本地使用 Mercurial 管理该目录。我可以 hg 恢复
该目录,但我已将 hg 设置为忽略 CVS 目录,因此没有 CVS 目录。每次我尝试提交(这是一个被删除的小目录)时,CVS 都会崩溃,除非我专门针对要提交的文件。
我尝试过CVS update
,但没有成功。有人可以提出建议吗?
I accidentally locally deleted a directory in a CVS repository, which I'm also managing with mercurial locally. I can hg revert
the directory, but I've got hg set up to ignore the CVS directories, so there's no CVS directory. CVS is freaking out every time I try to do a commit (it's a trivial directory that was removed), unless I specifically target the files to be committed.
I've tried CVS update
and that's not getting it done. Can anyone make a suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
-d
标志告诉 CVS 寻找新目录。默认情况下,它不会在更新期间自动选取新目录,以防您在签出期间故意省略存储库的特定子树。就我个人而言,我总是希望使用
-d
选项,因此我将此选项(以及其他一些选项)添加到我的~/.cvsrc
配置中:The
-d
flag tells CVS to look for new directories. By default it will not automatically pick up new directories during updates just in case you intentionally omitted particular sub-trees of your repository during checkout.Personally I always want the
-d
option to be used so I added this option (and a few others) to my~/.cvsrc
configuration:您可以尝试使用
cvs checkout
再次检出该目录。只需转到存储库的根目录并使用该命令仅检查该特定目录。You could try using
cvs checkout
to check the directory out again. Just go to the root of your repository and use the command to only check out that specific directory.