info-cvs
[Top][All Lists]
Advanced

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

Re: Example of adding new dir/src files and then adding a new brand new


From: Larry Jones
Subject: Re: Example of adding new dir/src files and then adding a new brand new file
Date: Wed, 13 Feb 2002 14:49:06 -0500 (EST)

address@hidden writes:
> 
> $ cvs co test
> cvs checkout: Updating test
> cvs checkout: Updating test/expanded
> U test/expanded/calpub01.log
> U test/expanded/calpub01.sas    ............
> 
> Adding new subdir/src files to existing repo:
> $ pwd
> /cpas/stacy/test
> $ mkdir povtext

If you're going to use add, you want to do "cvs add povtext" here.  That
will make povtext a subdirectory of test in the repository, which I
presume is what you want.  Directories are added immediately rather than
waiting for a commit.

> $ cd povtext
> $ cp /cpsmig/povmar01/povtext/*.* .

At this point, you should do "cvs add *" followed by "cvs commit".

Alternatively, you can add the files with import.  In that case, you
*don't* want to be in your working directory, you want to do it from
where the files already exist:

        cd /cpsmig/povmar01/povtext
        cvs import -m "add new dir" test/povtext stacy start

Note that I specified the repository directory as test/povtext to make a
subdirectory under the existing directory.  If you wanted povtext to be
a new top-level directory, you would just say "povtext" instead.

After updating, you can go back to your working directory and do:

        cvs update -d

to get the new directory and files.

-Larry Jones

I wonder if you can refuse to inherit the world. -- Calvin



reply via email to

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