Re: [lug-nuts] way to add a directory in cvs without first checkout

From: Mike Machado (mike@innercite.com)
Date: Tue Dec 14 1999 - 13:32:00 PST


Brian Lavender wrote:
>
> I am wondering if there is a more efficient way I can use CVS. First, the
> way I currently do it. Second, the way I wish I could do it.
>
> When I use cvs I first create a directory under the cvs root directory for the
> module that will contain the files I wish to track.
>
> cvsroot = /usr/local/cvsroot
>
> Module containing files. I create this directory
>
> /usr/local/cvsroot/practice
>
> I then go to my home directory
>
> $ cd /home/brian
>
> and I do
>
> $ cvs -d /usr/local/cvsroot checkout practice
>
> cvs creates the directory
>
> /home/brian/practice
>
> I then add a file into my practice directory.
>
> $ cp ~/foo.pl /home/brian/practice/
>
> Then I move into the practice area
>
> $ cd ~/practice
>
> and I add the foo.pl to my cvs
>
> $ cvs add foo.pl
>
> Then
>
> $ cvs commit
>
> I then enter an initial log entry for foo.pl
>
> Here's where the question starts.
> Say I already have the directory
>
> /home/brian/practice
>
> with say
>
> foo.pl barney.pl wilma.pl bar.pl
>
> and so on. Is there a way to drop these into CVS without doing a checkout?
>
> brian
>
> --
> Brian Lavender
> http://www.brie.com/brian/
> ****************************************************************************
> * To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
> * in the message body to majordomo@saclug.org. Please direct other
> * questions, comments, or problems to lug-nuts-owner@saclug.org.

You might want to check 'cvs import'. It takes a few options like vendor
tag and release tag, but those are not important and just make something
up. It does exaclly what you want.

-- 
Mike Machado
mike@innercite.com
InnerCite
Network Specialist
****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
* in the message body to majordomo@saclug.org. Please direct other
* questions, comments, or problems to lug-nuts-owner@saclug.org.



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:09 PST