Discussion:
CVS: remove empty dir that never had files
KM
2013-07-15 14:05:08 UTC
Permalink
When I added a new top level directory to the repository, I accidentally created a double path, e.g.  mydir/mydir instead of just mydir at the top of the repository tree.   I tried to do the normal cvs delete or the directory, but since it's empty it doesn't do anything.

since I never had files in it and don't need any history or archived files from it, how can I remove it for good?

Thx
KM  
Spiro Trikaliotis
2013-07-15 18:18:54 UTC
Permalink
Hello,
Post by KM
When I added a new top level directory to the repository, I
accidentally created a double path, e.g.  mydir/mydir instead of just
mydir at the top of the repository tree.   I tried to do the normal
cvs delete or the directory, but since it's empty it doesn't do
anything.
cvs does not keep track of directories, only of files in it.

But: Normally, cvs does not remove the directories if they are empty. If
you want to let cvs do that, you have to add -P ("prune directories") to
the checkout and update commands.

Of course, these are only client-side options. If you want to completely
remove it from the server, just remove that directory from the
repository structure itself. Node that this is safe as long as the
directory is really (and always was) empty - otherwise, I would not
recommend that.

Best regards,
Spiro.
--
Spiro R. Trikaliotis
http://www.trikaliotis.net/
Loading...