[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
Re: Example of adding new dir/src files and then adding a new brand new file
Wed, 13 Feb 2002 14:49:06 -0500 (EST)
> $ 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
> $ 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:
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.
I wonder if you can refuse to inherit the world. -- Calvin