Performing an initial checkout of Drupal HEAD (i.e. $ cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout drupal) results in the erroneous creation of a bunch of extra empty folders.

Here is a list of the extra folders erroneously included with a fresh CVS checkout:

Name         Size Modified               
-----------------------------------------
database          2010-08-03 12:04:00 PM
files             2010-08-03 12:04:00 PM
includes          2010-08-03 12:04:00 PM 
\tests            2010-08-03 12:04:00 PM
modules           2010-08-03 12:04:00 PM 
+actions          2010-08-03 12:04:00 PM 
+archive          2010-08-03 12:04:00 PM 
+blogapi          2010-08-03 12:04:00 PM 
+drupal           2010-08-03 12:04:00 PM 
+image            2010-08-03 12:04:00 PM 
|\images          2010-08-03 12:04:00 PM
+legacy           2010-08-03 12:04:00 PM
+page             2010-08-03 12:04:00 PM
+ping             2010-08-03 12:04:00 PM
+story            2010-08-03 12:04:00 PM
+throttle         2010-08-03 12:04:02 PM
+upload           2010-08-03 12:04:02 PM
\watchdog         2010-08-03 12:04:02 PM
profiles          2010-08-03 12:04:02 PM 
+default          2010-08-03 12:04:02 PM
\expert           2010-08-03 12:04:02 PM
sites             2010-08-03 12:04:02 PM 
\default          2010-08-03 12:04:02 PM 
themes            2010-08-03 12:04:02 PM 
+bartik           2010-08-03 12:04:02 PM 
|\scripts         2010-08-03 12:04:02 PM 
+bluemarine       2010-08-03 12:04:02 PM 
+chameleon        2010-08-03 12:04:02 PM 
|+images          2010-08-03 12:04:02 PM 
|+marvin          2010-08-03 12:04:02 PM 
|\pure            2010-08-03 12:04:02 PM 
+engines          2010-08-03 12:04:02 PM 
|\xtemplate       2010-08-03 12:04:02 PM 
+example          2010-08-03 12:04:02 PM 
+garland          2010-08-03 12:04:02 PM 
|\minnelli        2010-08-03 12:04:02 PM
| \color          2010-08-03 12:04:02 PM
+goofy            2010-08-03 12:04:02 PM
|\images          2010-08-03 12:04:02 PM
+jeroen           2010-08-03 12:04:02 PM
|\images          2010-08-03 12:04:02 PM
+marvin           2010-08-03 12:04:02 PM
|\images          2010-08-03 12:04:02 PM
+pushbutton       2010-08-03 12:04:02 PM
+slate            2010-08-03 12:04:02 PM
+trillian         2010-08-03 12:04:02 PM
|\images          2010-08-03 12:04:02 PM
+unconed          2010-08-03 12:04:02 PM
|\images          2010-08-03 12:04:02 PM
+xtemplate        2010-08-03 12:04:02 PM
|+default         2010-08-03 12:04:02 PM
|+images          2010-08-03 12:04:02 PM
|\pushbutton      2010-08-03 12:04:02 PM
\yaroon           2010-08-03 12:04:02 PM
 \images          2010-08-03 12:04:02 PM
updates           2010-08-03 12:04:02 PM
-----------------------------------------

Note that performing a CVS update -rP cleans out this cruft.

Comments

damien tournoud’s picture

Status: Active » Closed (works as designed)

This is how CVS work.

You can pass -P to cvs checkout if you are not happy with those additional directories.

ridgerunner’s picture

Ok, I get it now. The -P option tells CVS to prune empy directories. I thought that this was a problem because neither the release gz/zip distribution archives nor the github drupal repository include any of these empty folders. That, and they looked like unecessary cruft to me. (goofy theme?)

Thanks for clearing this up Damien. Hey, you learn something new every day!
:)

marcvangend’s picture

Project: Drupal core » Documentation
Version: 7.x-dev »
Component: base system » Correction/Clarification
Status: Closed (works as designed) » Active

Just ran into this as well. Wouldn't you agree that the documentation at http://drupal.org/node/320 should include the -P option in all commands?

webchick’s picture

Status: Active » Needs work

Sounds good. Go for it!

marcvangend’s picture

Webchick, I'd love to, but I don't have the rights to edit that page. Can you grant me permission?

If not, maybe someone else can make the following changes:
- add the -P flag to all command line examples (if it's not there already)
- move line about the -P flag (now in the "Keeping your HEAD in the game" section) up in the page, so it will appear below the first command line example like this:

... (-z6: use gzip compression so the transfer takes less time. -d: specify the 'directory' where the files are located and how to access them. -P: prune empty directories, i.e. directories that got removed in the repository will also be removed in your working copy.) ...

webchick’s picture

Thou hast verily been granted thine "documentation maintainer" permissions. Go forth, brave Sir, and kicketh those docs into shapeth!

(Wow, I need sleep.)

marcvangend’s picture

Status: Needs work » Fixed

Thanks, Webchick Shakespeare!

I updated the page. Commands with co -D or co -r already imply the -P flag, so I didn't add it there. The exact changes can be seen at http://drupal.org/node/320/revisions/view/1030678/1151204.

Status: Fixed » Closed (fixed)
Issue tags: -CVS

Automatically closed -- issue fixed for 2 weeks with no activity.