从CVS删除空目录? [英] Remove empty directory from CVS?

查看:92
本文介绍了从CVS删除空目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不太确定这是怎么发生的,但是某种程度上,目录库中的目录完全是空的:

I'm not quite sure how this happened, but somehow a completely empty hierarchy of directories has ended up in my repository:

com/
com/companyname/
com/companyname/blah/
com/sun/
com/sun/java/
com/sun/java/jax_rpc_ri/

我认为发生的事是这些目录中确实有文件,但后来开发人员意识到他/她本来不应该首先检查它们的,因为它们是构建过程的副产品,因此他/她删除了文件,但是以某种方式将空目录留在了存储库中作为古代文物。

I think what happened was that these directories did have files in them, but then a developer realized he/she shouldn't have checked them in in the first place since these are by-products of the build process, so he/she removed the files but somehow the empty directories are left in the repository as ancient relics.

如何从CVS中删除它?我似乎只能在Google上找到的唯一结果是,由于CVS不会将空目录放在首位,因此不必删除空目录,并且 -P (code> cvs更新的修剪)选项应该将它们从工作目录中删除-如果您的存储库中确实有空目录,这将是零帮助。

How can I remove this from CVS? The only results I seem to be able to find on google say that there shouldn't be a need to remove empty directories as CVS won't keep them around in the first place, and that the -P (prune) options to cvs update should remove them from the working directory - which is zero help if you actually have empty directories in your repository.

A cvs删除 cvs提交请注意以下情况:

A cvs remove and cvs commit doesn't seem to take care of this situation:

$ cvs remove -Rf com
cvs remove: Removing com
cvs remove: Removing com/companyname
cvs remove: Removing com/companyname/blah
cvs remove: Removing com/sun
cvs remove: Removing com/sun/java
cvs remove: Removing com/sun/java/jax_rpc_ri
$ cvs commit com
cvs commit: Examining com
cvs commit: Examining com/companyname
cvs commit: Examining com/companyname/blah
cvs commit: Examining com/sun
cvs commit: Examining com/sun/java
cvs commit: Examining com/sun/java/jax_rpc_ri
$ ls -l com
total 24
drwxrwxr-x  2 matt matt 4096 Oct 15 14:38 CVS
drwxrwxr-x  9 matt matt 4096 Oct 15 14:38 companyname
drwxrwxr-x  4 matt matt 4096 Oct 15 14:38 sun

它仍然存在!

SVN也有这种奇怪的行为吗?

Does SVN have this weird behavior too?

推荐答案

AFAIK CVS协议不允许删除目录。您应该转到服务器控制台,并将其从实际的物理存储库中删除。

AFAIK the CVS protocol does not allow to remove directories. You should go to the server console and remove them from the real physical repository.

http://www.network-theory.co.uk/docs/cvsmanual/Removingdirectories.html


您不会删除目录本身;
无法执行此操作。

这篇关于从CVS删除空目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆