bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: import doesn't create directories in the repository for empty


From: Galen Seitz
Subject: Re: import doesn't create directories in the repository for empty
Date: Tue, 16 Mar 2004 09:20:20 -0800

Derek Robert Price <address@hidden> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Galen Seitz wrote:
> 
> >Larry Jones <address@hidden> wrote:
> >
> >>Galen Seitz writes:
> >>
> >>>I followed the instructions in Cederqvist section 3.1.3, "Creating a
> >>>directory tree from scratch", but cvs apparently does not create
> >>>directories for empty subdirs.
> >>
> >>Correct -- CVS manages files, not directories.
> >
> >
> >Would you entertain a patch to remove or replace the following section
> >of the manual?  It is clearly wrong as written.
> 
> 
> No, because Larry told you wrong.  `cvs import' _DOES_ create empty
> directories in the repository when requested.  Most likely, however, you
> are attempting to check out your new project using `cvs checkout -P'.
> Later `cvs update -P's can have a similar effect.  `-P' could also be
> specified in your ~/.cvsrc (or in WinCVS the global preferences tab's
> "Prune (remove) empty directories" option).
> 
> The workaround is either to 1: Checkout some empty and harmless file you
> might need later, like .cvsignore, or something like a stub Makefile
> into each previously empty directory before your import, or 2: checkout
> and update without the `-P' option until you no longer have any empty
> directories you are concerned about retaining in your sandbox.
> 


As you can see below, I followed the steps shown in section
3.1.3.  During the import only the directory path specified on the import
command line gets created.  The empty subdirs in my working directory
are not created in the repository.  I haven't even tried to do a
checkout, because an ls of the repository shows that the subdirs are
missing.

My cvs client system is redhat 9 and the server is redhat 7.2.  Both
systems are running cvs-1.11.14.

thanks,
galen

bash-2.05b$ mkdir tc
bash-2.05b$ mkdir tc/man
bash-2.05b$ mkdir tc/testing
bash-2.05b$ cd tc
bash-2.05b$ printenv CVSROOT
:ext:cvsserver:/projects
bash-2.05b$ cvs -f import -m "Created directory structure" yoyodyne/tc yoyo 
start
                                                                                
No conflicts created by this import
 
bash-2.05b$ ssh cvsserver ls -R /projects/yoyodyne
/projects/yoyodyne:
tc
 
/projects/yoyodyne/tc:
bash-2.05b$






reply via email to

[Prev in Thread] Current Thread [Next in Thread]