info-cvs
[Top][All Lists]
Advanced

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

Re: cvs add directories vs cvs import


From: Derek Price
Subject: Re: cvs add directories vs cvs import
Date: Thu, 11 Aug 2005 14:55:14 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Douglas Wade Needham wrote:

>>    find . -name CVS -prune -o -exec cvs add {} \;
>>    
>>
>
>Actually, if he is doing imports of just the directories (e.g. no
>files), then there are no versions stored anywhere (cannot store
>versions in a non-file).  However, he will still have problems with
>the ignored names, so unless additional flags are specified, a
>directory like foo/bar/obj (and its subdirectories, if any) will not
>be imported.
>  
>

My find will operate on directories with the above command.  I am not
sure why you have trouble.

>Like you, I tend to use find, though I tend to use xargs instead of
>the -exec option to find.  
>

To use xargs with the above command you would probably need to specifiy
-n1.  IIRC, a single command `cvs add dir dir/file dir/file2' will fail
for the files since dir was not a cvs controlled directory when the
command was first run, whereas `cvs add dir; cvs add dir/file; cvs add
dir/file2' will work just fine.

>However, after some testing, I may now lean
>towards import, at least for a totally empty directory tree.
>  
>

With a directory tree with no files, the find command above should
produce exactly the same result as cvs import and vice versa.

Cheers,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

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