info-cvs
[Top][All Lists]
Advanced

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

Re: How do you import a directory structure onto an existing branch?


From: Larry Jones
Subject: Re: How do you import a directory structure onto an existing branch?
Date: Wed, 27 Feb 2002 16:54:11 -0500 (EST)

address@hidden writes:
> 
> I am assuming now that cvs import is NOT the correct way to import a new 
> directory into an existing  directory and put it on a specific branch.

Correct.  Import puts things onto a vendor branch, which is special.  In
particular, things on vendor branches are also on the trunk.

> What IS the correct way to do this?  Do I need to do 'cvs adds and cvs commit 
> to get the directory and its files onto the branch?  

Exactly.  In your case, you could have done (in foo):

        cvs add mynewdir mynewdir/*
        cvs ci -m'add mynewdir and files'

(Although you have to be a bit careful, don't use "add *" unless you
really want to add *all* the files.)

-Larry Jones

They say winning isn't everything, and I've decided
to take their word for it. -- Calvin



reply via email to

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