cvs and empty directories
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Apr 1 18:38:49 AEST 1999
Hi,
Some of you may notice empty directories `lp_solve' and `readline'
after doing a cvs checkout or a cvs update. The solution to this is to
add the following lines to your ~/.cvsrc:
checkout -P
update -P
This will tell cvs to prune any empty directories.
Also, with regard to moving or renaming directories, in future I don't
think this should be done by just renaming the directory in the CVS
repository; instead, make a copy of the directory in the CVS repository
and then `cvs rm' the old copy. Likewise, if you want to delete an
existing directory, just `cvs rm' all the files in it. Doing this
makes it easier for people to deal with the update; I found that the
process of dealing with the renaming/deletion of extras/graphics/Togl
was quite a bit of work, because it had to be handled manually.
A corollary of this policy is that if you ever want to create a
deliberately empty directory in the cvs repository (why?),
and you want to ensure that this directory exists in people's
checked out versions, then you need to put at least one file there
(e.g. a README file explaining why the directory exists ;-).
As usual, comments welcome.
Cheers,
Fergus.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list